Can I disable the widget icon in the Tabbar?

hello.

I want to prevent the widgets in the leftPanelHandler area of Theia’s applicationshell from expanding by clicking on them under certain circumstances.

Is it possible to use registerCommand to enable/disable the widgets in the leftPanelHandler in the context menu based on the value of execute, isEnabled, or something similar? Or is it possible to implement something similar?