void (@NotNull final AnActionEvent e) { final GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); CaptionSelection selection = e.getData(CaptionSelection.DATA_KEY); if (editor == null || selection == null || selection.getFocusedIndex() < 0) return; FormEditingUtil.deleteRowOrColumn(editor, selection.getContainer(), selection.getSelection(), selection.isRow()); selection.getContainer().revalidate(); }