List<TerminalWidget> () { Splitter rootSplitter = findRootSplitter(); if (rootSplitter == null) { return List.of(myTerminalWidget); } List<TerminalWidget> terminals = new ArrayList<>(); traverseSplitters(rootSplitter, terminals); return terminals; }