void (@Nullable final PlaybackContext context, final String text, final int currentLine, final Type type, final boolean forced) { final int depth = context != null ? context.getCurrentStageDepth() : 0; UIUtil.invokeLaterIfNeeded(() -> { if (!forced && (context != null && context.isDisposed())) return; Color color = switch (type) { case message -> MESSAGE_COLOR; case error -> ERROR_COLOR; case code -> CODE_COLOR; case test -> TEST_COLOR; }; addInfo(text, currentLine, color, depth); }); }