public static Set<Entity> getSingletons(Resource res) { Set<Entity> singletons = new HashSet<Entity>(); for (Entity entidad : ModelUtils.<Entity>getVisibleNodes(LedPackage.Literals.ENTITY, res)) { if (LedEntidadUtils.esSingleton(entidad)) singletons.add(entidad); } return singletons; }