void (@NotNull DocumentEvent event) { final String text = myField.getText().trim(); actions[exitCode].setEnabled(myValidator == null || myValidator.checkInput(text)); if (myValidator instanceof InputValidatorEx) { setErrorText(((InputValidatorEx)myValidator).getErrorText(text), myField); } }