private static @NotNull Color calculateColor(@NonNls @NotNull String name, @Nullable Color defaultColor) {
    Color color = calculateColorOrNull(name);
    if (color == null) {
      return defaultColor == NAMED_COLOR_FALLBACK_MARKER || defaultColor == null ? Gray.TRANSPARENT : defaultColor;
    }
    return color;
  }
private static @NotNull Color calculateColor(@NonNls @NotNull String name, @Nullable Color defaultColor)