private static boolean isEnabled(@NotNull LiveTemplateContextsSnapshot allContexts,
                                   @NotNull TemplateContext thisContext,
                                   @NotNull LiveTemplateContext contextType) {
    synchronized (thisContext.myContextStates) {
      return isEnabledNoSync(thisContext, allContexts, contextType.getContextId());
    }
  }
private static boolean isEnabled(@NotNull LiveTemplateContextsSnapshot allContexts,
                                   @NotNull TemplateContext thisContext,
                                   @NotNull LiveTemplateContext contextType)