protected void applyInspectionSettingsFromComposer()

in src/com/jetbrains/php/tools/quality/phpstan/PhpStanComposerConfig.java [71:81]


  protected void applyInspectionSettingsFromComposer(Project project, PhpStanConfiguration configuration) {
    final String configPath = ComposerDataService.getInstance(project).getConfigPath();
    final VirtualFile config = LocalFileSystem.getInstance().refreshAndFindFileByPath(configPath);
    if (config == null) return;

    final String memoryLimit = getMemoryLimit(config);
    if (memoryLimit != null) {
      modifyRulesetPhpStanInspectionSetting(project,
                                            tool -> applyMemoryLimit(PhpStanOptionsConfiguration.getInstance(project), memoryLimit));
    }
  }