code: public static Predicate<Class<?>> classIs(final Class<?> reference) {
          return candidate -> candidate != null && candidate.equals(reference);
      }
docs: Checks if a candidate class is equal to the specified class.
  
  @param reference the class to check for.
  @return the predicate.