public List<Node> listAvailableNodes(Class<?> type){
  List<Node> result=new ArrayList<Node>();
  for (  Node node : availableNodes) {
    if (type.isAssignableFrom(node.getReturnType())) {
      result.add(node);
    }
  }
  return result;
}

public List < Node > listAvailableNodes ( Class < ? > type ) { List < Node > result = new ArrayList < Node > ( ) ; for ( Node node : availableNodes ) { if ( type . isAssignableFrom ( node . getReturnType ( ) ) ) { result . add ( node ) ; } } return result ; }
returns the list of all available nodes with the given return type .
