You can take out another couple if you did a sensible thing like taking a Set&#60;String&#62; as input for method names and returned a Set&#60;String&#62;<p>But like the other poster said, you're very unlikely to be doing this in Java, making the whole thing take 0 lines and 129.4 fewer insufferable smugness units.