code: @NotNull
      public List<T> queryList() throws SQLException {
          List<T> res = new ArrayList<>();
          try (ResultSet r = statement.executeQuery()) {
              while (r.next()) {
                  res.add(resultMapper.map(r));
              }
          }
          return res;
      }
docs: Executes sql statement and returns list of all values in result set mapped using {@link #resultMapper}.