private static boolean isHttpUrl(@NotNull String url) {
    try {
      String protocol = new URL(url).getProtocol();
      return protocol.equals("http") || protocol.equals("https");
    }
    catch (MalformedURLException e) {
      return false;
    }
  }
private static boolean isHttpUrl(@NotNull String url)