public static @NotNull LayeredTextAttributes create(@NotNull EditorColorsScheme scheme, TextAttributesKey @NotNull [] keys) {
    TextAttributes result = new TextAttributes();

    for (TextAttributesKey key : keys) {
      TextAttributes attributes = scheme.getAttributes(key);
      if (attributes != null) {
        result = TextAttributes.merge(result, attributes);
      }
    }

    return new LayeredTextAttributes(keys, result);
  }
public static @NotNull LayeredTextAttributes create(@NotNull EditorColorsScheme scheme, TextAttributesKey @NotNull [] keys)