void (@NotNull AnActionEvent e) { VirtualFile[] files; final boolean enabled = KEYBOARD_SHORTCUT.equals(e.getPlace()) && ((files = e.getData(CommonDataKeys.VIRTUAL_FILE_ARRAY)) != null) && (files.length > 0); e.getPresentation().setEnabledAndVisible(enabled); }