code: public void setAssociationEnds(@NotNull Collection<AssociationEndMetaData> ends) {
          externalAssociationEnds = new HashSet<>();
          externalAssociationEnds.addAll(ends);
      }
docs: /*
  For backward compatibility