SeverityBasedTextAttributes (@NotNull String name, @NotNull TextAttributes parent) { HighlightInfoType.HighlightInfoTypeImpl info = new HighlightInfoType.HighlightInfoTypeImpl(new HighlightSeverity(name, 50), TextAttributesKey .createTextAttributesKey(name)); return new SeverityBasedTextAttributes(parent.clone(), info); }