match a pattern to a function and its derivatives with a single pattern

How can I build a pattern that fits both F[x] and its derivatives F & # 39;[x], F & # 39; & # 39;[x] etc. without using the symbol F more than once in the definition of the pattern?

I've tried the pattern

(Identity | Derivative[_])[f][_]

which corresponds to the derivatives but not to the function F[x]; that would only match Identity[f][x] which is not the same when not evaluated.

See also here.