AbstractTagInjection (@NotNull BaseInjection o) { super.copyFrom(o); if (o instanceof AbstractTagInjection other) { myTagName = other.myTagName; myTagNamespace = other.myTagNamespace; setXPathCondition(other.getXPathCondition()); setApplyToSubTags(other.isApplyToSubTags()); } return this; }