void () { myPanel = new NewEditChangelistPanel(myProject) { @Override protected void nameChanged(@NlsContexts.DialogMessage String errorMessage) { setOKActionEnabled(errorMessage == null); setErrorText(errorMessage, myPanel); } }; }