private boolean containsValue ( StatementGroup statementGroup , Value value ) { for ( Statement s : statementGroup ) { if ( value . equals ( s . getValue ( ) ) ) { return true ; } } return false ; }
Checks if the given group of statements contains the given value as the value of a main snak of some statement .