fix in the logic of pattern annotator
Some cleaning
Filter out private members in override/implement