Some utility classes and methods for Java 8