LayeredTextAttributes (@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); }