void () { myFixture.configureByText(RestFileType.INSTANCE, ".. TODO whatever \n"); TodoItem[] items = PsiTodoSearchHelper.getInstance(getProject()).findTodoItems(myFixture.getFile()); assertEquals(1, items.length); }