List<ProblemDescriptor> (@NotNull PsiFile file, @NotNull LocalInspectionTool inspectionTool) { InspectionManager inspectionManager = InspectionManager.getInstance(file.getProject()); GlobalInspectionContext context = inspectionManager.createNewGlobalContext(); return InspectionEngine.runInspectionOnFile(file, new LocalInspectionToolWrapper(inspectionTool), context); }