void (@Nullable XDebugSession previousSession, @Nullable XDebugSession currentSession) { ApplicationManager.getApplication().invokeLater(() -> { if (previousSession != null && !previousSession.isStopped()) { XVariablesView.InlineVariablesInfo info = XVariablesView.InlineVariablesInfo.get(previousSession); if (info != null) { info.setInlays(clearInlaysInt(project)); } } if (currentSession != null) { XVariablesView.InlineVariablesInfo info = XVariablesView.InlineVariablesInfo.get(currentSession); if (info != null) { info.getInlays().forEach(renderer -> createInlayInt(currentSession, renderer)); } } DebuggerUIUtil.repaintCurrentEditor(project); // to update inline debugger data }, ModalityState.nonModal(), project.getDisposed()); }