public boolean isActiveQueryRunning() {
        return curQueryProcessor != null && curQueryProcessor.curJobRunning.get() > 0;
    }
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