static Set<Dependency> tryCreateFromInstanceofCheck(InstanceofCheck instanceofCheck) {
        return tryCreateDependency(
                instanceofCheck.getOwner(), "checks instanceof",
                instanceofCheck.getRawType(), instanceofCheck.getSourceCodeLocation());
    }
@Test
    @UseDataProvider("with_instanceof_check_members")
    public void Dependency_from_instanceof_check_in_code_unit(JavaCodeUnit memberWithInstanceofCheck, int expectedLineNumber) {
        InstanceofCheck instanceofCheck = getOnlyElement(memberWithInstanceofCheck.getInstanceofChecks());

        Dependency dependency = getOnlyElement(Dependency.tryCreateFromInstanceofCheck(instanceofCheck));

        Assertions.assertThatDependency(dependency)
                .matches(ClassWithDependencyOnInstanceofCheck.class, InstanceOfCheckTarget.class)
                .hasDescription(memberWithInstanceofCheck.getFullName(), "checks instanceof", InstanceOfCheckTarget.class.getName())
                .inLocation(ClassWithDependencyOnInstanceofCheck.class, expectedLineNumber);
    }