regen docs detecting class methods