private static boolean shouldCache(@NotNull URL url) {
    String protocol = url.getProtocol();
    return "ftp".equals(protocol) || "http".equals(protocol) || "https".equals(protocol);
  }
private static boolean shouldCache(@NotNull URL url)