boolean (final UExpression expression) { final UMethod method = UastUtils.getParentOfType(expression, UMethod.class); if (method == null) return false; final PsiType returnType = method.getReturnType(); return TO_STRING.equals(method.getName()) && method.getUastParameters().isEmpty() && returnType != null && "java.lang.String".equals(returnType.getCanonicalText()); }