code: @PublicAPI(usage = ACCESS)
      public JavaClasses importPackagesOf(Collection<Class<?>> classes) {
          Set<String> pkgs = new HashSet<>();
          for (Class<?> clazz : classes) {
              pkgs.add(clazz.getPackage().getName());
          }
          return importPackages(pkgs);
      }
docs: Takes the packages of the supplied classes and delegates to {@link #importPackages(String...)}