Get PsiMethod at given line number in a file?
Answered
How to get the PsiMethod at a given line number in a VirtualFile or PsiFile?
Please sign in to leave a comment.
The line number is not precise enough - you can get an element at the specified offset with: