@Nullable
    public <T extends SQLEditorAddIn> T findAddIn(@NotNull Class<T> addInClass) {
        for (SQLEditorAddIn addIn : addIns) { // we are ok with brute-force until there are not many of add-ins
            if (addInClass.isInstance(addIn)) {
                @SuppressWarnings("unchecked")
                T concreteAddIn = (T) addIn;
                return concreteAddIn;
            }
        }
        return null;
    }
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