GlobalInspectionContextImpl (@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; }