FoldToMethod.vim provides fold-to-method level expr functions for many popular languages.