protected List<Pair<EditorComposite, EditorWindow>> getFilesToClose(@NotNull AnActionEvent event) {
    List<Pair<EditorComposite, EditorWindow>> result = new ArrayList<>();
    DataContext dataContext = event.getDataContext();
    Project project = event.getRequiredData(CommonDataKeys.PROJECT);
    FileEditorManagerEx fileEditorManager = FileEditorManagerEx.getInstanceEx(project);
    EditorWindow editorWindow = EditorWindow.DATA_KEY.getData(dataContext);
    EditorWindow[] windows = editorWindow == null ? fileEditorManager.getWindows() : new EditorWindow[]{editorWindow};
    FileStatusManager fileStatusManager = FileStatusManager.getInstance(project);
    if (fileStatusManager != null) {
      for (int i = 0; i != windows.length; ++i) {
        EditorWindow window = windows[i];
        for (EditorComposite composite : window.getAllComposites()) {
          if (isFileToClose(composite, window, fileEditorManager) || isFileToCloseInContext(event.getDataContext(), composite, window)) {
            result.add(new Pair<>(composite, window));
          }
        }
      }
    }
    return result;
  }
protected List<Pair<EditorComposite, EditorWindow>> getFilesToClose(@NotNull AnActionEvent event)