i want to write a plugin that can replace specific identifier with pretty symbols.
for example the origin code in java is
int a = 1;
and if i turn on the plugin i can see
int a → 1;
i can auto replace identifer = with the unicode symbol →, and this replacement did not affect the compile process, it's just replace the text showing in the editor.
but with Annotator and TextAttributes, i can just change the color of identifier, not the text of identifier.
and i can just get text form ASTNode and PsiElement, but i can not find any api to set the element's text.
so how can i achive the goal?