Description
We already have something similar in AnalyzingVisitor which does a first pass to collect methods. We could generalize it and make it actually fail the build in case the symbols we're looking for are missing and output a meaningful build-time exception to avoid failing at runtime as shown in square/okhttp#8826