Here is a case were the field naming makes the code slightly less readable (and the code I write at my day job actually uses bean naming conventions). It's easy to mis that this isn't a variable declaration.

I suggest changing findCommonPrefix to return an `int`, and make `prefix` a variable named `commonPrefix`