public static @NotNull <T> Condition<T> instanceOf(final Class<?>... clazz) {
    return t -> {
      for (Class<?> aClass : clazz) {
        if (aClass.isInstance(t)) return true;
      }
      return false;
    };
  }
public static @NotNull <T> Condition<T> instanceOf(final Class<?>... clazz)