Add getMethodDecls collection to remove hack with getBodyDecl and instanceof.