package semantics;

import java.util.function.Function;
import java.util.HashSet;
import java.util.Set;
import semantics.model.Individual;


public class Individuals {
  private static Set<String> getVia(Set<Individual>              is,
                                    Function<Individual, String> func) {
    Set<String> set = new HashSet<>();

    for (Individual i : is) {
      set.add(func.apply(i));
    }

    return set;
  }


  public static Set<String> getIris(Set<Individual> is) {
    return getVia(is, Individual::getIri);
  }

  public static Set<String> getNames(Set<Individual> is) {
    return getVia(is, Individual::getName);
  }
}

@@ -197,24 +197,34 @@
  getVia(Set%3C
+? extends 
 Individual%3E 
@@ -222,26 +222,16 @@
 ividual%3E
-          
     is,%0A
@@ -468,24 +468,34 @@
 getIris(Set%3C
+? extends 
 Individual%3E 
@@ -589,16 +589,26 @@
 mes(Set%3C
+? extends 
 Individu

Use wildcard types for Individuals util methods