consider scope for TypeDeclaration.getMatchingMemberDeclarations