private static String forIncompatibleBaseImageJavaVersion(
      int baseImageMajorJavaVersion, int projectMajorJavaVersion, String parameterInstructions) {
    return suggest(
        "Your project is using Java "
            + projectMajorJavaVersion
            + " but the base image is for Java "
            + baseImageMajorJavaVersion,
        "configure a Java "
            + projectMajorJavaVersion
            + "-compatible base image "
            + parameterInstructions
            + " in your build configuration");
  }
Helper for creating messages with suggestions.

@param messagePrefix the initial message text
@param suggestion a suggested fix for the problem described by param: messagePrefix
@return the message containing the suggestion
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/HelpfulSuggestions.java