public boolean isRelevantForQuery(
User searcher,
Query query)
{
final NamedTerminalClauseCollectingVisitor clauseVisitor = new NamedTerminalClauseCollectingVisitor(clauseNames.getJqlFieldNames());
if(query != null && query.getWhereClause() != null)
{
query.getWhereClause().accept(clauseVisitor);
}
return clauseVisitor.containsNamedClause();
}