How to extend GameObject class

I have just gotten into the extending business and I made an extension to find all gameobjects with the given tags(instead of just one). But I can’t get the extension to show with the other Find-methods.

Currently it is declared as:

Public static class GameObjectExtensions{
   
    public static List<GameObject> FindAllGameObjectsWithTags(this GameObject go, List<string> tags)
    {
    //Code
    }
}

The method shows up under gameObject.FindAllGameObjectsWithTags() instead of GameObject.FindAllGameObjectsWithTags() - where the other Finds are.

Is it possible to get it under the GameObject with the other Find-methods?

You’re not supposed to derive from GameObject, thus you can’t extend that class this way. The extension method you wrote is pretty much what you can do.