public static @Nullable Color showDialog(@NotNull Component parent,
                                           @DialogTitle String caption,
                                           Color preselectedColor,
                                           boolean enableOpacity,
                                           List<? extends ColorPickerListener> listeners,
                                           boolean opacityInPercent) {
    final ColorPickerDialog dialog = new ColorPickerDialog(parent, caption, preselectedColor, enableOpacity, listeners, opacityInPercent);
    dialog.show();
    if (dialog.getExitCode() == DialogWrapper.OK_EXIT_CODE) {
      return dialog.getColor();
    }

    return null;
  }
public static @Nullable Color showDialog(@NotNull Component parent,
                                           @DialogTitle String caption,
                                           Color preselectedColor,
                                           boolean enableOpacity,
                                           List<? extends ColorPickerListener> listeners,
                                           boolean opacityInPercent)