private static @Nullable VirtualFile getSelectedFile(@NotNull DataContext context) {
    VirtualFile file = VcsContextUtil.selectedFile(context);
    if (file != null) return file;
    return getEditorFile(context);
  }
private static @Nullable VirtualFile getSelectedFile(@NotNull DataContext context)