@Nullable
    PsiVariable getReturnVariable(@NotNull Return ret) {
      PsiReference reference = tryCast(ret.myExpression, PsiReference.class);
      if (reference == null) return null;
      return tryCast(reference.resolve(), PsiVariable.class);
    }
@Nullable
    PsiVariable getReturnVariable(@NotNull Return ret)