code: public Collection<EntityAnnotation> getEntityAnnotations(TextAnnotation ta) {
          Collection<EntityAnnotation> eas = getEntityAnnotations();
          Collection<EntityAnnotation> result = Sets.newHashSet();
  
          for (EntityAnnotation ea : eas) {
              if (ea.getRelations() != null && ea.getRelations().contains(ta)) {
                  result.add(ea);
              }
          }
  
          return result;
      }
docs: Returns a {@link Collection} of {@link EntityAnnotation}s associated to the {@link TextAnnotation} passed by parameter
  
  @param ta {@link TextAnnotation}
  @return