@Override
  protected void apply(XmlAttributeInjection other) {
    other.setAttributeName(myLocalName.getText());
    other.setAttributeNamespace(getNamespace());

    String name = myNameTextField.getText();
    boolean useGenerated = myUseGeneratedName && Objects.equals(myOrigInjection.getDisplayName(), name);
    String newName = useGenerated || StringUtil.isEmptyOrSpaces(name) ? other.getGeneratedName() : name;
    other.setDisplayName(newName);
  }
@Override
  protected void apply(XmlAttributeInjection other)