boolean (@Nullable PsiMethod method) { if (method == null) { return false; } final PsiClassType stringType = TypeUtils.getStringType(method); return methodMatches(method, null, stringType, HardcodedMethodConstants.TO_STRING); }