I believe that defining a method like this will add it to every object in the system.  For cases like this I prefer to use a lambda to prevent that pollution.