in src/com/jetbrains/php/tools/quality/phpstan/PhpStanComposerConfig.java [49:68]
protected boolean applyRulesetFromComposer(@NotNull Project project, PhpStanConfiguration configuration) {
final String configPath = ComposerDataService.getInstance(project).getConfigPath();
PhpStanOptionsConfiguration projectConfiguration = PhpStanOptionsConfiguration.getInstance(project);
final VirtualFile config = LocalFileSystem.getInstance().refreshAndFindFileByPath(configPath);
if (config == null) return false;
final String ruleset = getRuleset(config);
if (ruleset == null) return false;
final VirtualFile customRulesetFile = detectCustomRulesetFile(config.getParent(), ruleset);
final boolean customRulesetChanged = customRulesetFile != null &&
modifyRulesetPhpStanInspectionSetting(project, tool -> applyRuleset(projectConfiguration,
customRulesetFile.getPath()));
final String memoryLimit = getMemoryLimit(config);
final boolean memoryLimitChanged =
memoryLimit != null && modifyRulesetPhpStanInspectionSetting(project, tool -> applyMemoryLimit(projectConfiguration, memoryLimit));
return customRulesetChanged || memoryLimitChanged;
}