TemplateContextType (@NotNull ComponentManager componentManager, @NotNull PluginDescriptor pluginDescriptor) { TemplateContextType instance = super.createInstance(componentManager, pluginDescriptor); if (instance.myContextId == null) { // new declaration syntax instance.myContextId = contextId; if (!EVERYWHERE_CONTEXT_ID.equals(contextId)) { String actualBaseId = baseContextId != null ? baseContextId : EVERYWHERE_CONTEXT_ID; instance.myBaseContextType = new SynchronizedClearableLazy(() -> LiveTemplateContextService.getInstance().getTemplateContextType(actualBaseId)); } } return instance; }