boolean (@NotNull GrVariable var, @NotNull GroovyPsiElement context, @NotNull GroovyControlFlow controlFlow) { Map<GroovyPsiElement, Boolean> map = CachedValuesManager.getCachedValue(var, () -> Result.create(new HashMap<>(), var)); final Boolean cached = map.get(context); if (cached != null) return cached.booleanValue(); final boolean result = isVariableDefinitelyInitialized(var, controlFlow); map.put(context, result); return result; }