Add protected method checker

Add protected method checker.