public void execute(final SNode node, final EditorContext editorContext) { EditorCell cell = editorContext.getSelectedCell(); String linkRole = QueriesUtil.getEditedLinkRole(cell); SNode referentNode = QueriesUtil.getEditedLinkReferentNode(cell); SNode result = SNodeFactoryOperations.setNewAttribute( referentNode, new IAttributeDescriptor.LinkAttribute( SConceptOperations.findConceptDeclaration( "jetbrains.mps.lang.editor.editorTest.structure.ReferenceAnnotataion"), linkRole), "jetbrains.mps.lang.editor.editorTest.structure.ReferenceAnnotataion"); }