void () { configureByText(FileTypes.PLAIN_TEXT, "-- -- ---"); FindModel model = new FindModel(); model.setStringToFind("--"); model.setWholeWordsOnly(true); List<Usage> usages = FindUtil.findAll(myProject, myFile, model); assertNotNull(usages); assertEquals(2, usages.size()); configureByText(FileTypes.PLAIN_TEXT, "myproperty=@AspectJ"); model = new FindModel(); model.setStringToFind("@AspectJ"); model.setWholeWordsOnly(true); usages = FindUtil.findAll(myProject, myFile, model); assertNotNull(usages); assertEquals(1, usages.size()); }