boolean (CustomTemplateCallback callback) { FileType type = callback.getFileType(); if (type == HtmlFileType.INSTANCE || type == XHtmlFileType.INSTANCE) { return true; } return type instanceof LanguageFileType && ((LanguageFileType)type).getLanguage().isKindOf(HTMLLanguage.INSTANCE); }