@NotNull private static String adjustHttpUrlForSettings(@NotNull String url){
  String prefix="https";
  if (url.startsWith(prefix)) {
    return "http" + url.substring(prefix.length());
  }
  return url;
}

@ NotNull private static String adjustHttpUrlForSettings ( @ NotNull String url ) { String prefix = "https" ; if ( url . startsWith ( prefix ) ) { return "http" + url . substring ( prefix . length ( ) ) ; } return url ; }
if the url scheme is https , store it as http in the database , not to make user enter and remember same credentials twice .
