Replaces filter and headOption with find.
Before:
seq.filter(p).headOption
After:
seq.find(p)