InspectionContext () { LocalInspectionToolWrapper tool = new LocalInspectionToolWrapper(new LocalInspectionEP()); InspectionProblemHolder fake = new InspectionProblemHolder(myPsiFile, tool, false, myInspectionProfileWrapper, emptyBiCallback); return new InspectionContext(tool, fake, new PsiElementVisitor() {}, List.of(), false, List.of(), myPsiFile); }