private static boolean processReferencesInFiles(List<PsiFile> files,
                                                  PsiManager psiManager, String baseName,
                                                  PsiElement element,
                                                  LocalSearchScope filterScope,
                                                  Processor<? super PsiReference> processor) {
    return psiManager.runInBatchFilesMode(() -> {
      for (PsiFile file : files) {
        ProgressManager.checkCanceled();

        if (file.getFileType() != GuiFormFileType.INSTANCE) continue;
        if (!processReferences(processor, file, baseName, element, filterScope)) {
          return false;
        }
      }
      return true;
    });
  }
private static boolean processReferencesInFiles(List<PsiFile> files,
                                                  PsiManager psiManager, String baseName,
                                                  PsiElement element,
                                                  LocalSearchScope filterScope,
                                                  Processor<? super PsiReference> processor)