private boolean isPositionedCorrectly(IJavaElement element){
  ListItem oldListItem=getOldPosition(element);
  if (oldListItem == null)   return false;
  ListItem newListItem=getNewPosition(element);
  if (newListItem == null)   return false;
  IJavaElement oldPrevious=oldListItem.previous;
  IJavaElement newPrevious=newListItem.previous;
  if (oldPrevious == null) {
    return newPrevious == null;
  }
 else {
    return oldPrevious.equals(newPrevious);
  }
}

private boolean isPositionedCorrectly ( IJavaElement element ) { ListItem oldListItem = getOldPosition ( element ) ; if ( oldListItem == null ) return false ; ListItem newListItem = getNewPosition ( element ) ; if ( newListItem == null ) return false ; IJavaElement oldPrevious = oldListItem . previous ; IJavaElement newPrevious = newListItem . previous ; if ( oldPrevious == null ) { return newPrevious == null ; } else { return oldPrevious . equals ( newPrevious ) ; } }
returns whether the elements position has not changed .
