void () { if (!isCommunicationClosed()) { try { executeBackgroundTask( () -> { PyUserTypeRenderersSettings settings = PyUserTypeRenderersSettings.getInstance(); if (settings == null) { return false; } List<PyUserTypeRenderer> renderers = settings.getApplicableRenderers(); if (renderers.isEmpty()) { return false; } final String renderersMessage = SetUserTypeRenderersCommand.createMessage(renderers); return getPythonConsoleBackendClient().setUserTypeRenderers(renderersMessage); }, false, createRuntimeMessage(PyBundle.message("console.setting.user.type.renderers")), "Error in setUserTypeRenderersSettings():" ); } catch (PyDebuggerException e) { LOG.warn("Failed to send Type Renderers", e); } } }