String (@NotNull UnboundDiagnostic diagnostic) { DiagnosticRenderer renderer = MAP.get(diagnostic.getFactory()); if (renderer != null) { //noinspection unchecked return renderer.render(diagnostic); } return DefaultErrorMessages.render(diagnostic); }