code: public static String collapseQualifierBase(String name, String qualifierBase) {
      if (name == null || !name.startsWith(qualifierBase)) {
        return collapse(name);
      }
      return collapseQualifier(qualifierBase, true) + name.substring(qualifierBase.length());
    }
docs: Cross between {@link #collapse} and {@link #partiallyUnqualify}.  Functions much like {@link #collapse}
  except that only the qualifierBase is collapsed.  For example, with a base of 'org.hibernate' the name
  'org.hibernate.internal.util.StringHelper' would become 'o.h.util.StringHelper'.
  
  @param name          The (potentially) qualified name.
  @param qualifierBase The qualifier base.
  @return The name itself if it does not begin with the qualifierBase, or the properly collapsed form otherwise.