void (@NotNull List<String> expectedScreenLines, long timeoutMillis) { boolean ok = awaitBuffer(() -> checkScreenLinesEndWith(expectedScreenLines), timeoutMillis); if (!ok) { Assert.assertEquals(expectedScreenLines, getScreenLines(true)); Assert.fail("Unexpected failure"); } }