code: public @CheckForNull <T extends FingerprintFacet> T getFacet(Class<T> type) {
          for (FingerprintFacet f : getFacets()) {
              if (type.isInstance(f))
                  return type.cast(f);
          }
          return null;
      }
docs: Finds a facet of the specific type (including subtypes.)
  @param <T> Class of the {@link FingerprintFacet}
  @return First matching facet of the specified class
  @since 1.556