Check for private and protected methods as well