public void performWhenAvailable(@NotNull Consumer<? super @NotNull AbstractPopup> consumer) {
    if (popup == null) {
      consumers.add(consumer);
    }
    else {
      consumer.accept(popup);
    }
  }
public void performWhenAvailable(@NotNull Consumer<? super @NotNull AbstractPopup> consumer)