Extract AST related addViolation methods to AbstractASTVisitRule