@Override
  public PsiVariable getUsedVariable(@NotNull PsiReferenceExpression refExpr) {
      PsiElement resolved = refExpr.resolve();
      return resolved instanceof PsiVariable ? (PsiVariable)resolved : null;
  }
@Override
  public PsiVariable getUsedVariable(@NotNull PsiReferenceExpression refExpr)