void (ActionEvent event) { Window window = ComponentUtil.getWindow(this); DialogWrapper wrapper = window instanceof DialogWrapperDialog dwd ? dwd.getDialogWrapper() : null; if (wrapper != null && (wrapper.myClosed || wrapper.myPerformAction)) return; if (wrapper != null) wrapper.myPerformAction = true; try (AccessToken ignore = SlowOperations.startSection(SlowOperations.ACTION_PERFORM)) { super.fireActionPerformed(event); } finally { if (wrapper != null) wrapper.myPerformAction = false; } }