public static void nagUserOfReplacedProperty(String propertyName, String replacement) {
   if (isEnabled() && PROPERTIES.add(propertyName)) {
     LOGGER.warn(
         String.format(
             "The %s property has been deprecated and will be removed in the next version of Gradle. Please use the %s property instead.",
             propertyName, replacement));
     logTraceIfNecessary();
   }
 }
 public static void nagUserOfReplacedTask(String taskName, String replacement) {
   if (isEnabled() && TASKS.add(taskName)) {
     LOGGER.warn(
         String.format(
             "The %s task has been deprecated and will be removed in the next version of Gradle. Please use the %s instead.",
             taskName, replacement));
     logTraceIfNecessary();
   }
 }
 public static void nagUserOfReplacedMethod(String methodName, String replacement) {
   if (isEnabled() && METHODS.add(methodName)) {
     LOGGER.warn(
         String.format(
             "The %s method has been deprecated and will be removed in the next version of Gradle. Please use the %s method instead.",
             methodName, replacement));
     logTraceIfNecessary();
   }
 }
 public static void nagUserOfReplacedPlugin(String pluginName, String replacement) {
   if (isEnabled() && PLUGINS.add(pluginName)) {
     LOGGER.warn(
         String.format(
             "The %s plugin has been deprecated and will be removed in the next version of Gradle. Please use the %s plugin instead.",
             pluginName, replacement));
     logTraceIfNecessary();
   }
 }
 public static void nagUserOfReplacedNamedParameter(String parameterName, String replacement) {
   if (isEnabled() && NAMED_PARAMETERS.add(parameterName)) {
     LOGGER.warn(
         String.format(
             "The %s named parameter has been deprecated and will be removed in the next version of Gradle. Please use the %s named parameter instead.",
             parameterName, replacement));
     logTraceIfNecessary();
   }
 }
 public static void nagUserOfDiscontinuedProperty(String propertyName, String advice) {
   if (isEnabled() && PROPERTIES.add(propertyName)) {
     LOGGER.warn(
         String.format(
             "The %s property has been deprecated and will be removed in the next version of Gradle. %s",
             propertyName, advice));
     logTraceIfNecessary();
   }
 }
 public static void nagUserOfDiscontinuedMethod(String methodName) {
   if (isEnabled() && METHODS.add(methodName)) {
     LOGGER.warn(
         String.format(
             "The %s method has been deprecated and will be removed in the next version of Gradle.",
             methodName));
     logTraceIfNecessary();
   }
 }
 public static void nagUserWith(String message) {
   if (isEnabled() && METHODS.add(message)) {
     LOGGER.warn(message);
     logTraceIfNecessary();
   }
 }