PostfixTemplateExpressionSelector (final Condition<? super PsiElement> additionalFilter) { return new PostfixTemplateExpressionSelectorBase(additionalFilter) { @Override protected List<PsiElement> getNonFilteredExpressions(@NotNull PsiElement context, @NotNull Document document, int newOffset) { return getAllExpressionsAtOffset(context.getContainingFile(), newOffset - 1); } }; }