flutter-idea/src/io/flutter/editor/FlutterColors.java [105:134]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    return name;
  }

  private static String maybeTrimSuffix(String value, String suffix) {
    if (value.endsWith(suffix)) {
      return value.substring(0, value.length() - suffix.length());
    }
    return value;
  }

  private static Color parseColor(String hexValue) {
    if (hexValue == null) {
      return null;
    }

    try {
      // argb to r, g, b, a
      final long value = Long.parseLong(hexValue, 16);

      //noinspection UseJBColor
      return new Color((int)(value >> 16) & 0xFF, (int)(value >> 8) & 0xFF, (int)value & 0xFF, (int)(value >> 24) & 0xFF);
    }
    catch (IllegalArgumentException e) {
      return null;
    }
  }

  private static Color getColorValue(String name) {
    final String hexValue = colors.getProperty(name);
    return parseColor(hexValue);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



flutter-idea/src/io/flutter/editor/FlutterCupertinoColors.java [83:112]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    return name;
  }

  private static String maybeTrimSuffix(String value, String suffix) {
    if (value.endsWith(suffix)) {
      return value.substring(0, value.length() - suffix.length());
    }
    return value;
  }

  private static Color parseColor(String hexValue) {
    if (hexValue == null) {
      return null;
    }

    try {
      // argb to r, g, b, a
      final long value = Long.parseLong(hexValue, 16);

      //noinspection UseJBColor
      return new Color((int)(value >> 16) & 0xFF, (int)(value >> 8) & 0xFF, (int)value & 0xFF, (int)(value >> 24) & 0xFF);
    }
    catch (IllegalArgumentException e) {
      return null;
    }
  }

  private static Color getColorValue(String name) {
    final String hexValue = colors.getProperty(name);
    return parseColor(hexValue);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



