public static <S> void copyProperties(ArtifactProperties<?> from, ArtifactProperties<S> to) {
    //noinspection unchecked
    to.loadState((S)from.getState());
  }
public static <S> void copyProperties(ArtifactProperties<?> from, ArtifactProperties<S> to)