@NotNull
    private Pair<SQLCompletionRequest, List<? extends SQLQueryCompletionProposal>> requestNewInternal(
        @NotNull String sql,
        boolean simpleMode
    ) throws DBException {
        final SQLCompletionRequest request = prepareCompletionRequest(sql, simpleMode);
        final String queryText = request.getActiveQuery().getText();
        final DBRProgressMonitor monitor = new VoidProgressMonitor();

        SQLQueryRecognitionContext recognitionContext = new SQLQueryRecognitionContext(
            monitor,
            request.getContext().getExecutionContext(),
            true,
            request.getContext().getSyntaxManager(),
            request.getContext().getDataSource().getSQLDialect()
        );
        recognitionContext.reset();
        SQLQueryModel queryModel = SQLQueryModelRecognizer.recognizeQuery(recognitionContext, queryText);
        Assert.assertNotNull(queryModel);

        final SQLQueryCompletionAnalyzer analyzer = getSqlQueryCompletionAnalyzer(queryText, queryModel, request);
        try {
            analyzer.run(monitor);
        } catch (InvocationTargetException | InterruptedException e) {
            throw new DBException("Error while preparing completion proposals", e);
        }
        return Pair.of(request, analyzer.getResult());
    }
Returns the list of proposals that semantic autocompletion engine returns for the provided text
test/org.jkiss.dbeaver.test.platform/src/org/jkiss/dbeaver/model/sql/analyzer/builder/request/RequestResult.java