Stream<XInlineWatchesView> () { return Arrays.stream(XDebuggerManager.getInstance(myProject).getDebugSessions()) .map(s -> ((XDebugSessionImpl)s).getSessionTab()) .filter(t -> t != null && t.getWatchesView() instanceof XInlineWatchesView) .map(t -> (XInlineWatchesView)t.getWatchesView()); }