Dependency checking for collaborators, primitive types and collections