void (@NotNull XDebugSession debugSession, @NotNull PyStackFrame frame, @NotNull String exceptionType, @NotNull String errorMessage, boolean isTestSetUpFail) { AppUIUtil.invokeLaterIfProjectAlive(debugSession.getProject(), () -> { XSourcePosition position = frame.getPosition(); if (position == null) return; Consumer<Editor> addInlayToEditor = makeAddInlayToEditorFunction(debugSession, frame, exceptionType, errorMessage, isTestSetUpFail); Arrays.stream(getAllEditorsForFile(debugSession.getProject(), position.getFile())).forEach( editor -> addInlayToEditor.consume(editor)); }); }