src/main/java/org/fuin/srcgen4j/core/emf/AbstractEMFParser.java
private static Set<EObject> findAllEObjects(final ResourceSet resourceSet) {
        final Set<EObject> list = new HashSet<EObject>();
        for (final Iterator<Notifier> i = resourceSet.getAllContents(); i.hasNext();) {
            final Notifier next = i.next();
            if (next instanceof EObject) {
                list.add((EObject) next);
            }
        }
        return list;
    }
private static Set<EObject> findAllEObjects(final ResourceSet resourceSet) {
        final Set<EObject> list = new HashSet<EObject>();
        for (final Iterator<Notifier> i = resourceSet.getAllContents(); i.hasNext();) {
            final Notifier next = i.next();
            if (next instanceof EObject) {
                list.add((EObject) next);
            }
        }
        return list;
    }
Returns a list of all objects.

@return List.