@Override
              public boolean apply(Method method) {
                return Modifier.isPublic(method.getModifiers()) && method.getName().equals(name);
              }
Gets all (public) methods by name using reflection
mongo/test/org/immutables/mongo/fixture/flags/FlagsTest.java