// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.dev.codeInsight;

import com.intellij.DynamicBundle;
import org.jetbrains.annotations.*;

import java.util.function.Supplier;

final class DevCodeInsightBundle {

  private static final @NonNls String BUNDLE_FQN = "messages.DevCodeInsightBundle";
  private static final DynamicBundle BUNDLE = new DynamicBundle(DevCodeInsightBundle.class, BUNDLE_FQN);

  private DevCodeInsightBundle() {
  }

  public static @Nls @NotNull String message(@PropertyKey(resourceBundle = BUNDLE_FQN) @NotNull String key,
                                             @Nullable Object @NotNull ... params) {
    return BUNDLE.getMessage(key, params);
  }

  public static @NotNull Supplier<@Nls @NotNull String> messagePointer(@PropertyKey(resourceBundle = BUNDLE_FQN) @NotNull String key,
                                                                       @Nullable Object @NotNull ... params) {
    return BUNDLE.getLazyMessage(key, params);
  }
}
