I am developing a plugin to do some thing based on the selected text in the editor.
In order to achieve my goal, I need to know the PsiElement type of the focused line.
if(a != null)
if I selected 'a != null', the focused line is a PsiIfStatement.
I know how to get the PsiElement of the selected text. But I don't how to get the PsiElement of that line.