boolean (@NotNull List<String> expectedScreenLines) { List<String> actualLines = getScreenLines(true); if (actualLines.size() < expectedScreenLines.size()) return false; List<String> lastActualLines = actualLines.subList(actualLines.size() - expectedScreenLines.size(), actualLines.size()); return expectedScreenLines.equals(lastActualLines); }