@Override
  public PsiVariable getUsedVariable(@NotNull PsiReferenceExpression refExpr) {
    if (refExpr.isQualified()) return null;

    PsiElement refElement = refExpr.resolve();
    return refElement instanceof PsiLocalVariable || refElement instanceof PsiParameter ? checkCodeFragment(refElement) : null;
  }
@Override
  public PsiVariable getUsedVariable(@NotNull PsiReferenceExpression refExpr)