List<ScopeToolState> () { if (myTools == null) { return Collections.singletonList(myDefaultState); } List<ScopeToolState> result = new ArrayList<>(myTools); result.add(myDefaultState); return result; }