SimpleTextAttributes (@NotNull SimpleColoredComponent component, @NotNull SimpleTextAttributes baseStyle, boolean isActive) { if (isActive) return baseStyle; Color color = ObjectUtils.chooseNotNull(baseStyle.getFgColor(), component.getForeground()); return new SimpleTextAttributes(baseStyle.getStyle(), ColorUtil.toAlpha(color, 85)); }