code: public AtomixBuilder withProfiles(Collection<Profile> profiles) {
      profiles.forEach(profile -> config.addProfile(profile.config()));
      return this;
    }
docs: Sets the Atomix profiles.
  <p>
  Profiles are common configurations that will be applied to the instance configuration when the {@link Atomix}
  instance is constructed.
  
  @param profiles the profiles
  @return the Atomix builder
  @throws NullPointerException if the profiles are null