boolean (@NotNull final AnActionEvent e) { final VirtualFile[] selectedFiles = getSelectedFiles(); if (selectedFiles.length == 0) return false; final ContentEntryEditor editor = myEntryTreeEditor.getContentEntryEditor(); return editor != null && myEditHandler.getRootType().equals(editor.getRootType(selectedFiles[0])); }