code: public static @NotNull SqlQuery namedQuery(@NotNull @SQL String sql, @NotNull VariableResolver variableResolver) {
          return NamedParameterSqlParser.parseSqlStatement(sql).toQuery(variableResolver);
      }
docs: Creates a new {@link SqlQuery} consisting of given SQL statement and a provider for named arguments.
  The argument names in SQL should be prefixed by a colon, e.g. ":argument".
  
  @throws SqlSyntaxException if SQL is malformed
  @throws VariableResolutionException if variableResolver can't provide values for named parameters