Color (@NotNull Color foreground, @NotNull Color background) { return new Color( alphaBlendingComponent(foreground.getRed(), foreground.getAlpha(), background.getRed(), background.getAlpha()), alphaBlendingComponent(foreground.getGreen(), foreground.getAlpha(), background.getGreen(), background.getAlpha()), alphaBlendingComponent(foreground.getBlue(), foreground.getAlpha(), background.getBlue(), background.getAlpha()), (255 * 255 - (255 - background.getAlpha()) * (255 - foreground.getAlpha())) / 255); }