findXxxxToken condition simplification