void (@NotNull AnActionEvent e) { Editor editor = e.getData(CommonDataKeys.EDITOR); if (editor == null) return; Color currentColor = getColor(myColorText); if (currentColor == null) return; boolean withAlpha = isRgbaColorHex(myColorText); if (Registry.is("ide.new.color.picker")) { ColorChooserService.getInstance().showPopup(e.getProject(), currentColor, (c, l) -> applyColor(currentColor, withAlpha, c)); } else { Color newColor = ColorChooserService.getInstance().showDialog(editor.getProject(), editor.getComponent(), DevKitThemesBundle.message("theme.choose.color.dialog.title"), currentColor, withAlpha); applyColor(currentColor, withAlpha, newColor); } }