String (PsiExpression expression) { if (!(expression instanceof PsiMethodCallExpression call)) return null; PsiMethodCallExpression copy = (PsiMethodCallExpression)call.copy(); for (PredicatedReplacement predicatedReplacement : ourReplacements) { if (predicatedReplacement.predicate.test(call)) { ExpressionUtils.bindCallTo(copy, predicatedReplacement.name); return copy.getText(); } } return null; }