void (@NotNull PsiElement element, @Nullable JsonPropertyAdapter firstProp) { JsonValueAdapter rootToCheck; if (firstProp == null) { rootToCheck = findTopLevelElement(myWalker, element); } else { rootToCheck = firstProp.getParentObject(); if (rootToCheck == null || !myWalker.isTopJsonElement(rootToCheck.getDelegate().getParent())) { return; } } if (rootToCheck != null) { Project project = element.getProject(); final MatchResult matchResult = new JsonSchemaResolver(project, myRootSchema).detailedResolve(); createWarnings(JsonSchemaAnnotatorChecker.checkByMatchResult(project, rootToCheck, matchResult, myOptions)); } }