protected boolean modifyRulesetPsalmInspectionSetting()

in src/com/jetbrains/php/tools/quality/psalm/PsalmComposerConfig.java [57:68]


  protected boolean modifyRulesetPsalmInspectionSetting(@NotNull Project project, @NotNull Consumer<PsalmGlobalInspection> consumer) {
    VirtualFile projectDir = project.getBaseDir();
    if (projectDir == null) return false;

    final PsiDirectory file = PsiManager.getInstance(project).findDirectory(projectDir);
    if (file != null) {
      Key<PsalmGlobalInspection> key = Key.create(PsalmQualityToolType.INSTANCE.getInspectionId());
      InspectionProfileManager.getInstance(project).getCurrentProfile().modifyToolSettings(key, file, consumer);
      return true;
    }
    return false;
  }