@Override
  protected void update(@NotNull FileSystemTree fileSystemTree, @NotNull AnActionEvent e) {
    VirtualFile parent = fileSystemTree.getNewFileParent();
    e.getPresentation().setEnabled(parent != null && parent.isDirectory());
  }
@Override
  protected void update(@NotNull FileSystemTree fileSystemTree, @NotNull AnActionEvent e)