void (@NotNull PsiMethodCallExpression expression) { super.visitMethodCallExpression(expression); if (expression.getTextOffset() < myVariable.getTextOffset() || myToStringFound) { return; } final PsiMethod method = expression.resolveMethod(); if (method == null) { setPossibleSideEffect(expression); return; } final PsiClass aClass = method.getContainingClass(); if (aClass == null) { setPossibleSideEffect(expression); return; } final String name = aClass.getQualifiedName(); if (CommonClassNames.JAVA_LANG_STRING_BUFFER.equals(name) || CommonClassNames.JAVA_LANG_STRING_BUILDER.equals(name) || STRING_JOINER.equals(name)) { return; } if (isArgumentOfStringBuilderMethod(expression)) { return; } setPossibleSideEffect(expression); }