void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); if (myManager == null) { presentation.setEnabledAndVisible(false); } else { presentation.setIcon(ToolWindowManager.getInstance(myManager.myProject).getLocationIcon(ToolWindowId.DOCUMENTATION, EmptyIcon.ICON_16)); presentation.setEnabledAndVisible(myToolwindowCallback != null); } }