in src/com/jetbrains/php/tools/quality/phpstan/PhpStanQualityToolType.java [73:83]
public QualityToolValidationGlobalInspection getGlobalTool(@NotNull Project project,
@Nullable InspectionProfile profile) {
if (profile == null) {
profile = InspectionProjectProfileManager.getInstance(project).getCurrentProfile();
}
final InspectionToolWrapper<?, ?> inspectionTool = profile.getInspectionTool(getInspectionId(), project);
if (inspectionTool == null) {
return null;
}
return tryCast(inspectionTool.getTool(), PhpStanGlobalInspection.class);
}