boolean (@NotNull TemplateContext thisContext, @NotNull LiveTemplateContextsSnapshot allContexts, @NotNull String contextTypeId) { Boolean storedValue = thisContext.getOwnValueNoSync(contextTypeId); if (storedValue == null) { LiveTemplateContext liveTemplateContext = allContexts.getLiveTemplateContext(contextTypeId); String baseContextTypeId = liveTemplateContext != null ? liveTemplateContext.getBaseContextId() : null; return baseContextTypeId != null && isEnabledNoSync(thisContext, allContexts, baseContextTypeId); } return storedValue.booleanValue(); }