private static @Nullable VirtualFile getEditingFile(@NotNull AnActionEvent e) {
    FileEditor fileEditor = e.getData(PlatformDataKeys.LAST_ACTIVE_FILE_EDITOR);
    return fileEditor != null ? fileEditor.getFile() : null;
  }
private static @Nullable VirtualFile getEditingFile(@NotNull AnActionEvent e)