private char MyValidate(char c, int charIndex) { if (inserting) { return(c); } lastCharInsertIndex = charIndex; return(IDETextManipulation.MyValidate(c, charIndex, isPasting(), toAddLevels, theInputField.text, this)); }