@NotNull
    private SQLScriptContext createScriptContext() {
        java.nio.file.Path localFile = EditorUtils.getPathFromInput(getEditorInput());
        return new SQLScriptContext(
            globalScriptContext,
            SQLEditor.this,
            localFile,
            new OutputLogWriter(),
            new SQLEditorParametersProvider(getSite()));
    }
Obtain the add-in instance by its concrete type
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java