void (char c, boolean refreshUi) { checkValid(); myOffsets.appendPrefix(c); myPresentableArranger.prefixChanged(this); requestResize(); if (refreshUi) { refreshUi(false, true); ensureSelectionVisible(true); } myPrefixChangeListeners.forEach((listener -> listener.afterAppend(c))); }