boolean (final AnAction action) { //todo actions from SeaEverywhereAction Presentation presentation = action.getTemplatePresentation(); if (ActionUtil.isDumbMode(myProject) && !action.isDumbAware()) { return false; } return presentation.isEnabled() && presentation.isVisible() && !StringUtil.isEmpty(presentation.getText()); }