boolean (XmlElement element, PsiElementProcessor<? super PsiElement> processor, boolean deepFlag, boolean wideFlag) { if (element == null) return true; PsiFile baseFile = element.isValid() ? element.getContainingFile() : null; return processXmlElements(element, processor, deepFlag, wideFlag, baseFile); }