void (@NotNull AnActionEvent e) { if (ThumbnailViewActionUtil.setEnabled(e)) { ThumbnailView view = ThumbnailViewActionUtil.getVisibleThumbnailView(e); VirtualFile root = view.getRoot(); e.getPresentation().setEnabled(root != null && root.getParent() != null && !view.isRecursive()); } }