private void ensureUiInitialized() {
    if (myWholePanel == null) {
      $$$setupUI$$$();
      myNamePanel.setVisible(myNameEditable);
      if (myNameEditable) {
        myNameField.getDocument().addDocumentListener(new DocumentAdapter() {
          @Override
          protected void textChanged(@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);
            }
          }
        });
      }
      myNamePanel.setBorder(JBUI.Borders.empty(10, 10, 6, 10));
    }
  }
private void ensureUiInitialized()