public static List < Node > getParentChangeScopeNodes ( List < Node > scopeNodes ) { Set < Node > parentScopeNodes = new LinkedHashSet <> ( scopeNodes ) ; for ( Node scopeNode : scopeNodes ) { parentScopeNodes . add ( getEnclosingChangeScopeRoot ( scopeNode ) ) ; } return new ArrayList <> ( parentScopeNodes ) ; }
Returns the list of scope nodes which are parents of the provided list of scope nodes .