private static SnapCandidate createSnapCandidate(ConstraintWidget widget,ConstraintAnchor.Type type,int x,int y){
  SnapCandidate candidate=new SnapCandidate();
  candidate.source=widget.getAnchor(type);
  ConstraintWidget owner=widget.getParent();
  ConstraintAnchor anchor=new ConstraintAnchor(owner,type);
  candidate.x=x;
  candidate.y=y;
  candidate.target=anchor;
  return candidate;
}

private static SnapCandidate createSnapCandidate ( ConstraintWidget widget , ConstraintAnchor . Type type , int x , int y ) { SnapCandidate candidate = new SnapCandidate ( ) ; candidate . source = widget . getAnchor ( type ) ; ConstraintWidget owner = widget . getParent ( ) ; ConstraintAnchor anchor = new ConstraintAnchor ( owner , type ) ; candidate . x = x ; candidate . y = y ; candidate . target = anchor ; return candidate ; }
internal utility function to create a snap candidate on the fly for a margin .
