private @NotNull GlobalInspectionContextEx createGlobalInspectionContext(Project project) {
    InspectionManagerBase im = (InspectionManagerBase)InspectionManager.getInstance(project);
    GlobalInspectionContextEx context = (GlobalInspectionContextEx)im.createNewGlobalContext();
    context.setExternalProfile(myInspectionProfile);
    if (myPathProfiling) {
      context.startPathProfiling();
    }
    im.setProfile(myInspectionProfile.getName());
    return context;
  }
private @NotNull GlobalInspectionContextEx createGlobalInspectionContext(Project project)