def METHOD_NAME(file_path, project=None) -> None:
    tree = get_directory_tree()
    tree.add_project(project or file_path.parent)
    while True:
        tree.update()
        tree.select_file(file_path)
        if get_path(tree.selection()[0]) == file_path:
            return
        tree.item(tree.selection()[0], open=True)
        tree.event_generate("<<TreeviewOpen>>")