void () { if (myNameEditData == null) return; String currName = myNameEditorField.getText(); if (!currName.equals(myNameEditData.initialName)) { String validationMessage = validateSchemeName(currName, myNameEditData.isProjectScheme); if (validationMessage != null) { mySchemesPanel.showInfo(validationMessage, MessageType.ERROR); return; } } showHint(); }