String (@NotNull PsiExpression nullComparedExpression, @Nullable PsiExpression message) { final @NonNls StringBuilder result = new StringBuilder("java.util.Objects.requireNonNull("); result.append(nullComparedExpression.getText()); if (message != null) { result.append(", "); if (ExpressionUtils.hasStringType(message)) { result.append(message.getText()); } else { result.append(CommonClassNames.JAVA_LANG_STRING + ".valueOf(").append(message.getText()).append(")"); } } result.append(")"); return result.toString(); }