Hiding MonoBehaviour in "Add Component" Inspector list: Unity 6 update

In reference to this discussion: How to hide MonoBehaviour in list of components.

The AddComponentMenu("") trick didn’t work for me in Unity 6, not even after restarting the editor. It would still show up in the “Add Component” menu in the Inspector.

It did work with the following string, without requiring a restart:
AddComponentMenu("GameObject/")

An example:

using UnityEngine;

[AddComponentMenu("GameObject/")]
public class WontBeListedInAddComponentMenu : MonoBehaviour {}

Hope that helps anyone stumbling over the same problem that seemingly has a known solution but now requires a lesser known variant of the solution.