Distinguish between ComboBox or MenuBar in drawPopupMenuItem?

A way is to override drawPopupMenuItemWithOptions instead and check for ComboBox inside.

if (dynamic_cast<juce::ComboBox*> (options.getTargetComponent()) != nullptr) {
    DBG ("ComboBox");
}