PsiExpression (PsiExpression string, PsiElementFactory factory) { return factory .createExpressionFromText(ParenthesesUtils.getText(string, ParenthesesUtils.METHOD_CALL_PRECEDENCE) + ".length()", string); }