ProblemsHolder (@NotNull UElement uElement, @NotNull InspectionManager manager, boolean isOnTheFly) { PsiElement sourcePsi = uElement.getSourcePsi(); if (sourcePsi != null) { return new ProblemsHolder(manager, sourcePsi.getContainingFile(), isOnTheFly); } throw new IllegalStateException("Could not create problems holder"); }