void (@NotNull DocumentEvent e) { @NlsSafe String name = myNameField.getText().trim(); try { checkName(name); myErrorLabel.setErrorText(null, null); if (!isUpdatingNameFieldFromDisplayName()) { setDisplayName(name); if (myUpdateTree != null) { myUpdateTree.run(); } } } catch (ConfigurationException exc) { myErrorLabel.setErrorText(exc.getMessage(), JBColor.RED); } }