boolean (@NotNull PostfixTemplateProvider provider, @NotNull String key, @NotNull PsiFile file, @NotNull Editor editor, @Nullable PostfixTemplate template) { Disposable parentDisposable = Disposer.newDisposable(); try { return createIsApplicationTemplateFunction(provider, key, file, editor, parentDisposable).value(template); } finally { Disposer.dispose(parentDisposable); } }