void (@NotNull Function<? super Crumb, String> crumbToString) { myFixture.configureByFile("all.yml"); final CaretModel caretModel = myFixture.getEditor().getCaretModel(); final String result = ContainerUtil.map(caretModel.getAllCarets(), Caret::getOffset).stream() .map((offset) -> { caretModel.moveToOffset(offset); return myFixture.getBreadcrumbsAtCaret().stream() .map(crumbToString) .reduce((left, right) -> left + right).orElse("[]"); }) .reduce((left, right) -> left + "\n------\n" + right).orElse(""); assertSameLinesWithFile(getTestDataPath() + getTestName(true) + ".txt", result); }