void () { FindModel findModel = FindManagerTestUtils.configureFindModel("done"); String prefix = "/*"; String text = prefix + "done*/done"; findModel.setSearchContext(FindModel.SearchContext.EXCEPT_COMMENTS); LightVirtualFile file = new LightVirtualFile("A.java", text); FindResult findResult = myFindManager.findString(text, prefix.length(), findModel, file); assertTrue(findResult.isStringFound()); assertTrue(findResult.getStartOffset() > prefix.length()); findModel.setRegularExpressions(true); findResult = myFindManager.findString(text, prefix.length(), findModel, file); assertTrue(findResult.isStringFound()); assertTrue(findResult.getStartOffset() > prefix.length()); }