if (it instanceof PsiEnumConstant) {
if (!(SNodeOperations.isInstanceOf(classifier.value, "jetbrains.mps.baseLanguage.structure.EnumClass"))) {
return;
}
SNode cnst = SConceptOperations.createNewNode("jetbrains.mps.baseLanguage.structure.EnumConstantDeclaration", null);
<BUG>SPropertyOperations.set(cnst, "name", it.getName());
</BUG>
if (needToSetId() && SPropertyOperations.getString(cnst, "name") != null) {
((jetbrains.mps.smodel.SNode) cnst).setId(JavaForeignIdBuilder.computeNodeId(it));
}

if (it instanceof PsiEnumConstant) {
if (!(SNodeOperations.isInstanceOf(classifier.value, "jetbrains.mps.baseLanguage.structure.EnumClass"))) {
return;
}
SNode cnst = SConceptOperations.createNewNode("jetbrains.mps.baseLanguage.structure.EnumConstantDeclaration", null);
SPropertyOperations.set(cnst, "name", "" + (it.getName()));
if (needToSetId() && SPropertyOperations.getString(cnst, "name") != null) {
((jetbrains.mps.smodel.SNode) cnst).setId(JavaForeignIdBuilder.computeNodeId(it));
}
