void (@NotNull AnActionEvent event) { SourcePosition place = getPlace(event); boolean toEnable = place != null; Presentation presentation = event.getPresentation(); if (ActionPlaces.PROJECT_VIEW_POPUP.equals(event.getPlace()) || ActionPlaces.STRUCTURE_VIEW_POPUP.equals(event.getPlace()) || ActionPlaces.BOOKMARKS_VIEW_POPUP.equals(event.getPlace())) { presentation.setVisible(toEnable); } presentation.setVisible(toEnable); }