void () { FindModel findModel = FindManagerTestUtils.configureFindModel("System.currentTimeMillis();\n System.currentTimeMillis();"); findModel.setMultiline(true); String fileContent = """ System.currentTimeMillis(); System.currentTimeMillis(); System.currentTimeMillis(); System.currentTimeMillis();"""; FindResult findResult = myFindManager.findString(fileContent, 0, findModel, null); assertTrue(findResult.isStringFound()); findResult = myFindManager.findString(fileContent, findResult.getEndOffset(), findModel, null); assertTrue(findResult.isStringFound()); }