SimpleTextAttributes (SimpleTextAttributes from) { MavenProjectsStructure.ErrorLevel level = getTotalErrorLevel(); Color waveColor = level == MavenProjectsStructure.ErrorLevel.NONE ? null : JBColor.RED; int style = from.getStyle(); if (waveColor != null) style |= SimpleTextAttributes.STYLE_WAVED; return new SimpleTextAttributes(from.getBgColor(), from.getFgColor(), waveColor, style); }