public QualityToolValidationGlobalInspection getGlobalTool()

in src/com/jetbrains/php/tools/quality/psalm/PsalmQualityToolType.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(), PsalmGlobalInspection.class);
  }