Key (@NotNull Key outputType) { if (ProcessOutputType.isStdout(outputType)) { return myStdoutEmulator.isInitialState() ? outputType : myColoredOutputTypeRegistry.getOutputType(myStdoutEmulator, outputType); } if (ProcessOutputType.isStderr(outputType)) { return myStderrEmulator.isInitialState() ? outputType : myColoredOutputTypeRegistry.getOutputType(myStderrEmulator, outputType); } return outputType; }