public static @NotNull GlobalInspectionContextImpl createContext(@NotNull InspectionToolWrapper toolWrapper,
                                                                   @NotNull InspectionManagerEx managerEx,
                                                                   @Nullable PsiElement psiElement) {
    final InspectionProfileImpl model = createProfile(toolWrapper, managerEx, psiElement);
    final GlobalInspectionContextImpl inspectionContext = managerEx.createNewGlobalContext();
    inspectionContext.setExternalProfile(model);
    return inspectionContext;
  }
public static @NotNull GlobalInspectionContextImpl createContext(@NotNull InspectionToolWrapper toolWrapper,
                                                                   @NotNull InspectionManagerEx managerEx,
                                                                   @Nullable PsiElement psiElement)