presto-cli/src/main/java/io/prestosql/cli/TableNameCompleter.java/TableNameCompleter/filterResults
class TableNameCompleter:    private static List<String> filterResults(List<String> values, String prefix)
    {
        ImmutableList.Builder<String> builder = ImmutableList.builder();
        for (String value : values) {
            if (value.startsWith(prefix)) {
                builder.add(value);
            }
        }
        return builder.build();
    }