1   package com.puppycrawl.tools.checkstyle.checks.whitespace.genericwhitespace;
2   import java.util.function.Supplier;
3   public class InputGenericWhitespaceMethodRef1
4   {
5     public static class SomeClass {
6       public static class Nested<V> {
7         private Nested() {
8         }
9       }
10    }
11  
12    public static class Nested2<V> {
13    }
14  
15    public <V> void methodName(V value) {
16      Supplier<?> t = Nested2<V>::new;
17      Supplier<SomeClass.Nested<V>> passes = SomeClass.Nested::new;
18      Supplier<SomeClass.Nested<V>> fails = SomeClass.Nested<V>::new;
19    }
20  }