boolean (@NotNull CustomLiveTemplate customLiveTemplate, @NotNull TemplateActionContext templateActionContext) { CustomTemplateCallback callback = new CustomTemplateCallback(Objects.requireNonNull(templateActionContext.getEditor()), templateActionContext.getFile()); return customLiveTemplate.isApplicable(callback, callback.getOffset(), templateActionContext.isSurrounding()); }