Add support of @Gauge for static methods