package de.plushnikov.intellij.plugin;

import com.intellij.CommonBundle;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.PropertyKey;

import java.util.ResourceBundle;

/**
 * {@link java.util.ResourceBundle}/localization utils for the lombok plugin.
 */
public class LombokBundle {
  /**
   * The {@link java.util.ResourceBundle} path.
   */
  @NonNls
  private static final String BUNDLE_NAME = "messages.lombokBundle";

  /**
   * The {@link java.util.ResourceBundle} instance.
   */
  private static final ResourceBundle BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);

  private LombokBundle() {
  }

  public static String message(@PropertyKey(resourceBundle = BUNDLE_NAME) String key, Object... params) {
    return CommonBundle.message(BUNDLE, key, params);
  }

  public static String messageOrDefault(@PropertyKey(resourceBundle = BUNDLE_NAME) String key, String defaultValue, Object... params) {
    return CommonBundle.messageOrDefault(BUNDLE, key, defaultValue, params);
  }
}

@@ -795,223 +795,6 @@
  %7D%0A%0A
-  public static String messageOrDefault(@PropertyKey(resourceBundle = BUNDLE_NAME) String key, String defaultValue, Object... params) %7B%0A    return CommonBundle.messageOrDefault(BUNDLE, key, defaultValue, params);%0A  %7D%0A
 %7D%0A

drop unused method