void (@NotNull AnActionEvent e) { XDebuggerFramesList framesList = e.getData(FRAMES_LIST); e.getPresentation().setEnabledAndVisible(framesList != null && ContainerUtil.getLastItem(framesList.getModel().getItems()) != null); }