void (@NotNull AnActionEvent e) { super.update(e); final Presentation presentation = e.getPresentation(); presentation.setEnabled(true); final VirtualFile[] files = getSelectedFiles(); if (files.length == 0) { presentation.setEnabled(false); return; } for (VirtualFile file : files) { if (file == null || !file.isDirectory()) { presentation.setEnabled(false); break; } } }