@Override public PsiElement setName(@NotNull String name) throws IncorrectOperationException { GLSLIdentifier identifier = getNameIdentifier(); if (identifier != null) { return identifier.setName(name); } else { throw new IncorrectOperationException("Declarator with no name!"); } }
@NotNull public String getName() { GLSLIdentifier identifier = getNameIdentifier(); if (identifier != null) { return identifier.getName(); } else { return "(anonymous)"; } }