Selected/Clicked/Hovered component in inspector

Hi,
Is it possible to get the component (as Component or SerializedObject in an editor script) that is currently clicked or hovered or otherwise selected in the inspector? I was unable to find a way.

Is this different from Unity - Scripting API: Selection.objects ?

Unfortunately, Selection only contains gameobjects or assets, not components.