public static boolean isAssignable(@NotNull Class<?> ancestor, @NotNull Class<?> descendant) {
    return ancestor == descendant || ancestor.isAssignableFrom(descendant);
  }
public static boolean isAssignable(@NotNull Class<?> ancestor, @NotNull Class<?> descendant)