def METHOD_NAME(all_connectors, enable_dependency_scanning):
    base_java_changed_file = Path("airbyte-integrations/bases/base-java/src/main/java/io/airbyte/integrations/BaseConnector.java")
    modified_files = [base_java_changed_file]
    not_modified_java_connector = pick_a_random_connector(language=ConnectorLanguage.JAVA)
    modified_java_connector = pick_a_random_connector(
        language=ConnectorLanguage.JAVA, other_picked_connectors=[not_modified_java_connector]
    )
    modified_files.append(modified_java_connector.code_directory / "foo.bar")
    modified_connectors = utils.get_modified_connectors(modified_files, all_connectors, enable_dependency_scanning)
    if enable_dependency_scanning:
        assert not_modified_java_connector in modified_connectors
    else:
        assert not_modified_java_connector not in modified_connectors
    assert modified_java_connector in modified_connectors