mapToSingle
Maps a collection containing all AnyPanels of all Frontends to a single Panel of type P. This mapping assumes there cannot be multiple instances of type P and will throw an IllegalStateException if it does encounter multiple ones.
If no AnyPanel of type P is present in the collection, null
will be returned.