void (@NotNull ReplaceInfo.SimpleReplaceInfo replaceInfo, @NotNull PsiExpression argument, @NotNull PsiExpression qualifierExpression, @NotNull StringBuilder builder, @NotNull CommentTracker ct) { boolean argumentIsNullable = isNullable(argument); if (argumentIsNullable) { builder.append(ct.text(argument, ParenthesesUtils.EQUALITY_PRECEDENCE)) .append("!=null &&"); } String qualifierText = ct.text(qualifierExpression, ParenthesesUtils.METHOD_CALL_PRECEDENCE) + "." + replaceInfo.valueMethod + "()"; String argumentText = ct.text(argument, ParenthesesUtils.METHOD_CALL_PRECEDENCE) + "." + replaceInfo.valueMethod + "()"; if (replaceInfo.isObjects) { builder.append(qualifierText).append(".equals(").append(argumentText).append(")"); } else { builder.append(qualifierText).append("==").append(argumentText); } }