beAccessedBy

fun beAccessedBy(vararg packagePatterns: String)

Asserts that classes in the selector are only accessed by packages matching the specified patterns.