private Set<OsmElement> findAppendableNodes(Way way){
  Set<OsmElement> result=new HashSet<OsmElement>();
  for (  Node node : way.getNodes()) {
    if (way.isEndNode(node))     result.add(node);
  }
  if (result.size() == 1)   result.clear();
  return result;
}

private Set < OsmElement > findAppendableNodes ( Way way ) { Set < OsmElement > result = new HashSet < OsmElement > ( ) ; for ( Node node : way . getNodes ( ) ) { if ( way . isEndNode ( node ) ) result . add ( node ) ; } if ( result . size ( ) == 1 ) result . clear ( ) ; return result ; }
finds which nodes can be append targets .
