void () { if (myEntryElement == null) { myHasErrors = true; return; } mySortableEntries.add(new SortableEntry(myEntryElement, myBeforeSeparator, myAfterSeparator)); myBeforeSeparator = new SmartList<>(); myAfterSeparator = new SmartList<>(); myEntryElement = null; }