I wonder how you will be using this method. Maybe there's a simpler way to accomplish? Thinking about returning "hits", maybe consider using the classpath of a project instead? Given that occurrences may appear in a library with attached sources, maybe "referencing" projects is a special case of classpath hits.