private void changeEditor( final @CheckForNull ComboBoxEditor oldCBE, final @CheckForNull ComboBoxEditor newCBE, final boolean update) { if (newCBE == oldCBE) return; JTextComponent oldText = null; if (null != oldCBE) { final Component component = oldCBE.getEditorComponent(); if (component instanceof JTextComponent) oldText = (JTextComponent) component; } JTextComponent newText = null; if (null != newCBE) { final Component component = newCBE.getEditorComponent(); if (component instanceof JTextComponent) newText = (JTextComponent) component; } changeText(oldText, newText, update); }