use filtering when discovering direct dependencies.