void focusToNameField() {
    JComponent field = FileTemplateBase.isChild(myTemplate) ? myFileName : myNameField;
    myNameField.selectAll();
    IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(field, true));
  }
void focusToNameField()