List<TestDescription> getSelectedTests(List<List<Integer>> selectedRowKeys) {
    List<TestDescription> list = new ArrayList<>();
    for (List<Integer> selectedPath : selectedRowKeys) {
      TestDescription testDescription = getSelectedTest(mTestDescription, selectedPath);
      if (!list.contains(testDescription)) {
        list.add(testDescription);
      }
    }
    return list;
  }
List < TestDescription > getSelectedTests ( List < List < Integer > > selectedRowKeys ) { List < TestDescription > list = new ArrayList < > ( ) ; for ( List < Integer > selectedPath : selectedRowKeys ) { TestDescription testDescription = getSelectedTest ( mTestDescription , selectedPath ) ; if ( ! list . contains ( testDescription ) ) { list . add ( testDescription ) ; } } return list ; }
@param selectedRowKeys
list of paths in the tree
@return List of TestDescription