restore and deprecate #getNestedClasses()