public static void reportDeprecatedUsage(@NotNull Class<?> violator, @NotNull String signature, @NotNull String details) {
    String message = "`" + signature + "` is deprecated and going to be removed soon. " + details;
    PluginException t = createByClass(message, null, violator);
    // trim stacktrace to avoid multiple reports in logs with the same deprecated signature
    t.setStackTrace(ArrayUtil.realloc(t.getStackTrace(), 5, StackTraceElement[]::new));
    Logger.getInstance(violator).error(t);
  }
public static void reportDeprecatedUsage(@NotNull Class<?> violator, @NotNull String signature, @NotNull String details)