EditorCustomElementRenderer (Editor editor) { PresentationFactory factory = new PresentationFactory(editor); InlayPresentation presentation = factory.referenceOnHover(factory.roundWithBackground(factory.smallText("Create breakpoint")), (event, point) -> { JavaDebuggerActionsCollector.createExceptionBreakpointInlay.log(); Project project = editor.getProject(); Collection<? extends XBreakpoint<JavaExceptionBreakpointProperties>> exceptionBreakpoints = XDebuggerManager.getInstance(project).getBreakpointManager().getBreakpoints(JavaExceptionBreakpointType.class); XBreakpoint<JavaExceptionBreakpointProperties> breakpoint = ContainerUtil.find(exceptionBreakpoints, b -> Objects.equals(myExceptionFqn, b.getProperties().myQualifiedName)); if (breakpoint == null) { ExceptionBreakpoint ebpt = DebuggerManagerEx.getInstanceEx(project).getBreakpointManager() .addExceptionBreakpoint(myExceptionFqn, StringUtil.getPackageName(myExceptionFqn)); if (ebpt != null) { breakpoint = ebpt.getXBreakpoint(); } } if (breakpoint != null) { BreakpointsDialogFactory.getInstance(project).showDialog(breakpoint); } }); return new PresentationRenderer(presentation); }