title: Java 8 map inner static class property in a non static method
body: <p>I am trying to  get the Java 8 stream equivalent of this old school code.</p>
  
  <pre><code>Set&lt;String&gt; studentNames = new HashSet&lt;String&gt;();
  for(Student student : students){
             String name =(student.getName());
              studentNames.add(transform(name));
          }
  </code></pre>
  
  <p>Student is inner static class while I need to call the api from non static method. transform is a static method. 
  I tried something like this but it doesnt compile.. I get compiler error as static reference cannot be made from non static method...</p>
  
  <pre><code>studentNames = Stream.of(students)
                  .filter(Objects::nonNull)
                  .map(Student::getName)
                  .map(Transformer::transform)
                  .collect(Collectors.toSet());
  </code></pre>