PostfixLiveTemplate (@NotNull PsiFile file, @NotNull Editor editor) { PostfixLiveTemplate postfixLiveTemplate = CustomLiveTemplate.EP_NAME.findExtension(PostfixLiveTemplate.class); TemplateActionContext templateActionContext = TemplateActionContext.expanding(file, editor); return postfixLiveTemplate != null && TemplateManagerImpl.isApplicable(postfixLiveTemplate, templateActionContext) ? postfixLiveTemplate : null; }