Ported 'CS1105ExtensionMethodMustBeDeclaredStaticAction'.