Don't consider bridge and synthetic methods.
Compile with Java 8.