void (ActionEvent e) { boolean isValid = checkValid(); if (isValid && myCallback != null) { final DialogWrapper dialog = DialogWrapper.findInstance(myCreateButton); if (dialog != null) { dialog.close(DialogWrapper.OK_EXIT_CODE); } try (AccessToken ignore = SlowOperations.allowSlowOperations(SlowOperations.ACTION_PERFORM)) { myCallback.consume(ProjectSettingsStepBase.this, getPeer()); } } }