List<Inlay> (@NotNull Editor editor) { EDT.assertIsEdt(); List<? extends Inlay> inlays = editor.getInlayModel().getAfterLineEndElementsInRange(0, editor.getDocument().getTextLength(), InlineDebugRenderer.class); inlays.forEach(Disposer::dispose); //noinspection unchecked return (List<Inlay>)inlays; }