@Override public void customizePresentation(@NotNull ColoredTextContainer component) { StackFrameDescriptorImpl selectedDescriptor = null; DebuggerSession session = myDebugProcess.getSession(); if (session != null) { XDebugSession xSession = session.getXDebugSession(); if (xSession != null) { XStackFrame frame = xSession.getCurrentStackFrame(); if (frame instanceof JavaStackFrame) { selectedDescriptor = ((JavaStackFrame) frame).getDescriptor(); } } } FRAME_RENDERER.customizePresentation(myDescriptor, component, selectedDescriptor); }