private static @Nullable MethodHandle getFont2dMethod(@NotNull String methodName, @NotNull Class<?> type) {
    try {
      return MethodHandleUtil.getPublicMethod(Font2D.class, methodName, MethodType.methodType(type));
    }
    catch (Throwable e) {
      LOG.debug(e);
      return null;
    }
  }
private static @Nullable MethodHandle getFont2dMethod(@NotNull String methodName, @NotNull Class<?> type)