public static String getName(X816SymbolAffectation element) { ASTNode symbol = element.getNode().findChildByType(X816Types.SYMBOL); if (symbol != null) { return symbol.getText(); } return null; }
public static PsiElement getNameIdentifier(X816SymbolAffectation element) { ASTNode keyNode = element.getNode().findChildByType(X816Types.SYMBOL); if (keyNode != null) { return keyNode.getPsi(); } else { return null; } }