void (@NotNull AnAction action, @NotNull JComponent component) { new AnActionWrapper(action) { @Override public void actionPerformed(@NotNull AnActionEvent e) { if (e.getInputEvent() instanceof MouseEvent && myGraphTable.isResizingColumns()) { // disable action during columns resize return; } super.actionPerformed(e); } }.registerCustomShortcutSet(CommonShortcuts.DOUBLE_CLICK_1, component); }