code: public List<JavaResource> getProjectAnnotations(Project project)
     {
        final List<JavaResource> classes = new ArrayList<>();
        if (project != null)
        {
           project.getFacet(JavaSourceFacet.class).visitJavaSources(new JavaAnnotationsSourceVisitor(classes));
        }
        return classes;
     }
docs: Returns all the {@link JavaAnnotationSource} objects from the given {@link Project}