void (Component comp, Object constraints, int index) { if (myEditor == null || comp != myEditor.getComponent()) { assert false : "You are not allowed to add anything to EditorTextField"; } super.addImpl(comp, constraints, index); }