JComponent (@NotNull MyTreeNode node) { String optionName = node.getKey().getOptionName(); if (CodeStyleSoftMarginsPresentation.OPTION_NAME.equals(optionName)) { mySoftMarginsEditor.setValue(castToIntList(node.getValue())); return mySoftMarginsEditor; } else if ("WRAP_ON_TYPING".equals(optionName)) { Object value = node.getValue(); if (value instanceof String) { for (int i = 0; i < getInstance().WRAP_ON_TYPING_OPTIONS.length; i++) { if (getInstance().WRAP_ON_TYPING_OPTIONS[i].equals(value)) { myWrapOnTypingCombo.setSelectedIndex(i); break; } } } return myWrapOnTypingCombo; } else if (node.getKey() instanceof CommaSeparatedIdentifiersOption) { myCommaSeparatedIdentifiersField.setValueName(node.getText()); String currValue = (String)node.getValue(); myCommaSeparatedIdentifiersField.setText(currValue); myCommaSeparatedIdentifiersField.getEditor().setDefaultValue(currValue); return myCommaSeparatedIdentifiersField; } return super.getCustomNodeEditor(node); }