support for notDeclaredBy in matchers