public static <T> void copyBean(@NotNull T from, @NotNull T to) {
    assert from.getClass().isAssignableFrom(to.getClass()) : "Beans of different classes specified: Cannot assign " +
                                                             from.getClass() + " to " + to.getClass();
    for (MutableAccessor accessor : BeanBindingKt.getBeanAccessors(from.getClass())) {
      accessor.set(to, accessor.read(from));
    }
  }
public static <T> void copyBean(@NotNull T from, @NotNull T to)