Refactor getImplements/Extends to match BNF/PSI changes.