ConsoleViewContentType (@NotNull String attribute) { int foregroundColor = -1; int backgroundColor = -1; boolean inverse = false; EffectType effectType = null; int fontType = -1; final String[] strings = attribute.split(";"); for (String string : strings) { int value; try { value = Integer.parseInt(string); } catch (NumberFormatException e) { continue; } if (value == 1) { fontType = Font.BOLD; } else if (value == 4) { effectType = EffectType.LINE_UNDERSCORE; } else if (value == 7) { inverse = true; } else if (value == 22) { fontType = Font.PLAIN; } else if (value == 24) { //not underlined effectType = null; } else if (value >= 30 && value <= 37) { foregroundColor = value - 30; } else if (value == 38) { //TODO: 256 colors foreground } else if (value == 39) { foregroundColor = -1; } else if (value >= 40 && value <= 47) { backgroundColor = value - 40; } else if (value == 48) { //TODO: 256 colors background } else if (value == 49) { backgroundColor = -1; } else if (value >= 90 && value <= 97) { foregroundColor = value - 82; } else if (value >= 100 && value <= 107) { backgroundColor = value - 92; } } return createAnsiConsoleViewContentType( attribute, backgroundColor, foregroundColor, null, null, inverse, ContainerUtil.createMaybeSingletonList(effectType), fontType ); }