private static boolean processFile(PsiFile psiFile, PsiElementProcessor<? super XmlFile> processor) {
    final FileType type = psiFile.getFileType();
    if (type == XmlFileType.INSTANCE && isRngFile(psiFile)) {
      if (!processor.execute((XmlFile)psiFile)) {
        return false;
      }
    } else if (type == RncFileType.getInstance()) {
      if (!processor.execute((XmlFile)psiFile)) {
        return false;
      }
    }
    return true;
  }
private static boolean processFile(PsiFile psiFile, PsiElementProcessor<? super XmlFile> processor)