private static @NotNull List<Method> filterRealMethods(Method @NotNull [] methods) {
    List<Method> result = new ArrayList<>();
    for (Method method : methods) {
      if (!method.isSynthetic()) {
        result.add(method);
      }
    }
    return result;
  }
private static @NotNull List<Method> filterRealMethods(Method @NotNull [] methods)