private static ScoutWidget[] removeGuidelines(ScoutWidget[] list){
  ArrayList<ScoutWidget> al=new ArrayList<>();
  for (  ScoutWidget aList : list) {
    if (aList.mConstraintWidget instanceof Guideline) {
      continue;
    }
    al.add(aList);
  }
  return al.toArray(new ScoutWidget[al.size()]);
}

private static ScoutWidget [ ] removeGuidelines ( ScoutWidget [ ] list ) { ArrayList < ScoutWidget > al = new ArrayList < > ( ) ; for ( ScoutWidget aList : list ) { if ( aList . mConstraintWidget instanceof Guideline ) { continue ; } al . add ( aList ) ; } return al . toArray ( new ScoutWidget [ al . size ( ) ] ) ; }
filter scoutwidget ' s of guideline objects
