docs: public static void copyJoins(From<?, ?> from, From<?, ?> to) {
          for (Join<?, ?> j : from.getJoins()) {
              Join<?, ?> toJoin = to.join(j.getAttribute().getName(), j.getJoinType());
              toJoin.alias(getOrCreateAlias(j));
  
              copyJoins(j, toJoin);
          }
  
          for (Fetch<?, ?> f : from.getFetches()) {
              Fetch<?, ?> toFetch = to.fetch(f.getAttribute().getName());
              copyFetches(f, toFetch);
  
          }
      }