protected void removeSep(int sep) {
			int caretWOSep = getGlobalCaret(sep);
			String textWOSep = getText(sep);
			setText(textWOSep);
			if (whichFocus > sep) {
				try {
					setGlobalCaret(caretWOSep);
				}
				catch (BadLocationException e) {
					throw new RuntimeException(e);
				}
			}
		}
Remove the given separator from the composite text.

@param sep the separator to remove, by index
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/TextFieldLinker.java