protected static @NotNull GlobalInspectionContextBase createContext(@NotNull PsiFile file) {
    InspectionManager inspectionManagerEx = InspectionManager.getInstance(file.getProject());
    return (GlobalInspectionContextBase)inspectionManagerEx.createNewGlobalContext();
  }
protected static @NotNull GlobalInspectionContextBase createContext(@NotNull PsiFile file)