metamodel: Declaration is not an AppliedType, only ClassOrInterface is. #226