Add support of @Metered for static methods