void (@NotNull String text, int expectedTodos) { myFixture.configureByText(MarkdownFileType.INSTANCE, text); assertEquals(expectedTodos, PsiTodoSearchHelper.getInstance(getProject()).findTodoItems(myFixture.getFile()).length); }