Sure but we're in the

    for (String invalidTypeName : Arrays.asList("javax.inject.Provider",
"dagger.Lazy"))

loop; not the one that loops over the methods.