void (@NotNull String text, @NotNull ConsoleViewContentType contentType) { List<Pair<String, ConsoleViewContentType>> result = myInputMessageFilter.applyFilter(text, contentType); if (result == null) { print(text, contentType, null); } else { for (Pair<String, ConsoleViewContentType> pair : result) { if (pair.first != null) { print(pair.first, pair.second == null ? contentType : pair.second, null); } } } }