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