name-parser-api/src/main/java/org/gbif/nameparser/util/NameFormatter.java
/**
   * @return true if rank marker was added
   */
@return true if rank marker was added
@return true if rank marker was added
private static boolean appendRankMarker(StringBuilder sb, Rank rank, Predicate<Rank> ifRank, boolean nothoPrefix) {
    if (rank != null
        && rank.getMarker() != null
        && (ifRank == null || ifRank.test(rank))
    ) {
      if (nothoPrefix) {
        sb.append(NOTHO_PREFIX);
      }
      sb.append(rank.getMarker());
      return true;
    }
    return false;
  }
private static boolean appendRankMarker ( StringBuilder sb , Rank rank , Predicate < Rank > ifRank , boolean nothoPrefix ) { if ( rank != null && rank . getMarker ( ) != null && ( ifRank == null || ifRank . test ( rank ) ) ) { if ( nothoPrefix ) { sb . append ( NOTHO_PREFIX ) ; } sb . append ( rank . getMarker ( ) ) ; return true ; } return false ; }
@return true if rank marker was added
@return true if rank marker was added