int (@NotNull AnsiTerminalEmulator terminalEmulator) { int result = 0; if (terminalEmulator.getWeight() == AnsiTerminalEmulator.Weight.BOLD) { result = Font.BOLD; } if (terminalEmulator.isItalic()) { result |= Font.ITALIC; } return result; }