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