public PsiElement resolve() {
PsiFile psiFile = getContainingFile();
LineCol coord = LineCol.fromOffset(psiFile, getTextOffset());
try {
DeclarationPosition declaration = DeclarationPosition.get(psiFile, coord);
return getElementAt(getProject(), declaration);
} catch (ProcessCanceledException ex) {
return null;
} catch (Exception e) {
LOG.error(e);