public void processExternalFile(PsiFile psiFile, XmlTag place) {
    final XmlDocument document = ((XmlFile)psiFile).getDocument();
    assert document != null;

    final XmlTag rootTag = document.getRootTag();
    assert rootTag != null;

    myInclude++;
    try {
      rootTag.processElements(new PsiElementProcessor() {
        @Override
        public boolean execute(@NotNull PsiElement element) {
          if (element instanceof XmlTag) {
            return process((XmlTag)element);
          }
          return shouldContinue();
        }
      }, place);
    }
    finally {
      myInclude--;
    }
  }
public void processExternalFile(PsiFile psiFile, XmlTag place)