public static boolean instanceOf(Object object, @NotNull Class<?> @NotNull ... classes) {
    if (object != null) {
      for (Class<?> c : classes) {
        if (c.isInstance(object)) return true;
      }
    }
    return false;
  }
public static boolean instanceOf(Object object, @NotNull Class<?> @NotNull ... classes)