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);
  }
}

package de.plushnikov.intellij.plugin;

import com.intellij.AbstractBundle;
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 AbstractBundle.message(BUNDLE, key, params);
  }
}

fix deprecated elements : CommonBundle -> AbstractBundle