Oh, just noticed `contentEquals()`, would be even better: http://docs.oracle.com/javase/7/docs/api/javax/lang/model/element/Name.html#contentEquals(java.lang.CharSequence)