@Nullable
  private static GrVariable resolveToLocalVariable(@Nullable PsiElement element, @NotNull String name) {
    if (element == null) return null;
    ElementResolveResult<GrVariable> result = GrReferenceResolveRunnerKt.resolveToLocalVariable(element, name);
    return result != null ? result.getElement() : null;
  }
@Nullable
  private static GrVariable resolveToLocalVariable(@Nullable PsiElement element, @NotNull String name)