I am developing a plugin to enhance the live template function of IDEA.
Consider the editing box when refactoring the name of a variable:

While typing code in such a replacement box, I want to get the text after finising inputting and do something, or get the variable name (like $value$ in the template text) of this replacement box.
Does anyone know how to do it?