Make def parentheses checks class methods aware