boolean (@Nullable XDebugSession session) { if (session instanceof XDebugSessionImpl && ((XDebugSessionImpl)session).isReadOnly()) { // update memory view only once (initially) if session is in read-only mode return myLastUpdatingTime.get() == INITIAL_TIME; } return session != null; }