added method for synthesizing static variables and getters