void (@NotNull Project project, @NotNull AnalysisScope scope) { InspectionProfile profile = getProfileForSilentCleanup(project); if (profile == null) { return; } InspectionManager managerEx = InspectionManager.getInstance(project); GlobalInspectionContextBase globalContext = (GlobalInspectionContextBase) managerEx.createNewGlobalContext(); globalContext.codeCleanup(scope, profile, getTemplatePresentation().getText(), getPostRunnable(), false); }