void (final LwIntrospectedProperty property, final Object2IntMap<String> class2variableIndex, final PsiClass aClass, final Object value, final String variable) { String valueClassName; if (property.getPropertyClassName().equals(ComboBoxModel.class.getName())) { valueClassName = DefaultComboBoxModel.class.getName(); } else { valueClassName = DefaultListModel.class.getName(); } String modelVarName = generateUniqueVariableName(valueClassName, class2variableIndex, aClass); myBuffer.append("final "); myBuffer.append(valueClassName); myBuffer.append(" "); myBuffer.append(modelVarName); myBuffer.append("= new ").append(valueClassName).append("();"); String[] items = (String[]) value; for(String item: items) { startMethodCall(modelVarName, "addElement"); push(item); endMethod(); } startMethodCall(variable, property.getWriteMethodName()); pushVar(modelVarName); endMethod(); }