void () { myFixture.enableInspections(new TodoCommentInspection()); myFixture.configureByText("X.java", """ class X { //<warning descr="TODO comment without description">TODO</warning> // <warning descr="TODO comment without description">TODO</warning> //<warning descr="TODO comment without description">TODO:</warning> //<warning descr="TODO comment without description">TODO :</warning> //<warning descr="TODO comment without description">TODO-</warning> //<warning descr="TODO comment without description">TODO - todo todo</warning> //TODO : OK, some description }"""); myFixture.testHighlighting(true, false, false); }