boolean () { List<? extends T> changes = getChanges(); if (changes.isEmpty()) return false; EditorEx editor = getEditor(); int line = editor.getCaretModel().getLogicalPosition().line; if (line == DiffUtil.getLineCount(editor.getDocument()) - 1) return false; T lastChange = changes.get(changes.size() - 1); if (getStartLine(lastChange) <= line) return false; return true; }