public <T extends EscherProperty> T lookup( int propId ) {return (T)properties.stream().filter(p -> p.getPropertyNumber() == propId).findFirst().orElse(null);}

public < T extends EscherProperty > T lookup ( int propId ) { return ( T ) properties . stream ( ) . filter ( p -> p . getPropertyNumber ( ) == propId ) . findFirst ( ) . orElse ( null ) ; }
public EscherProperty Lookup(int propId){foreach (EscherProperty prop in properties){if (prop.PropertyNumber == propId){return prop;}}return null;}
