void (@NotNull AnActionEvent e) { AnAction action = ActionUtil.getAction(myHorizontal ? "SplitVertically" : "SplitHorizontally"); if (action != null) { e.getPresentation().setIcon(action.getTemplatePresentation().getIcon()); } e.getPresentation().setEnabledAndVisible(myManager.getContents().length > 1); }