public static List<Method> declaredMethodsByName(@NotNull ReferenceType type, @NotNull String name) {
    return StreamEx.of(type.methods()).filter(m -> name.equals(m.name())).toList();
  }
public static List<Method> declaredMethodsByName(@NotNull ReferenceType type, @NotNull String name)