void (ActionEvent e) { recordAction("DialogOkAction", EventQueue.getCurrentEvent()); List<ValidationInfo> infoList = doValidateAll(); if (!infoList.isEmpty()) { ValidationInfo info = infoList.get(0); if (info.component != null && info.component.isVisible()) { IdeFocusManager.getInstance(null).requestFocus(info.component, true); } updateErrorInfo(infoList); startTrackingValidation(); for (ValidationInfo t : infoList) { if (!t.okEnabled) { return; } } } doOKAction(); }