void (@Nullable XDebugSession session) { if (session != null) { XDebugProcess process = session.getDebugProcess(); if (process instanceof JavaDebugProcess) { ((JavaDebugProcess)process).saveNodeHistory(); } session.rebuildViews(); } }