@Override
    public void visitVariable(@NotNull PsiVariable variable) {
      final PsiTypeElement typeElement = variable.getTypeElement();
      if (typeElement != null && !typeElement.isInferredType()) {
        expectedType = variable.getType();
      }
    }
@Override
    public void visitVariable(@NotNull PsiVariable variable)