Can this method return true somehow?
true
public static boolean isVoid(T t) { return t instanceof Void; }
No:
Constructor cv = Void.class.getDeclaredConstructor(); cv.setAccessible(true); Void v = cv.newInstance(); System.out.println(v instanceof Void); //-> true