support instance level refinement of staticmethod/classmethod