EditorCustomElementRenderer (Editor editor) { JavaDebuggerActionsCollector.attachFromConsoleInlayShown.log(); PresentationFactory factory = new PresentationFactory(editor); InlayPresentation presentation = factory.referenceOnHover( factory.roundWithBackground(factory.smallText("Attach debugger")), (event, point) -> { JavaDebuggerActionsCollector.attachFromConsoleInlay.log(); JavaAttachDebuggerProvider.attach(myTransport, myAddress, null, editor.getProject()); }); return new PresentationRenderer(presentation); }