Stumbled over this while reviewing #10858. Seem that we have an overcomplicated implementation here.
I think there should be no such things like "statusbar" or "gui" in a non-GUI class (when possible).
Next step would be to handle multi-warnings on RPC level (move from single string to an array).