if (typeName == null) {
throw new ProcessingException("Interface methods must not return null", enclosedElement);
}
String methodName = enclosedElement.getSimpleName().toString();
String fieldName = methodName;
<BUG>for (int i = fieldName.length() - 1; i >= 0; i--) {
</BUG>
char character = fieldName.charAt(i);
if (Character.isUpperCase(character)) {
fieldName = Character.toLowerCase(character) + fieldName.substring(i + 1);

if (typeName == null) {
throw new ProcessingException("Interface methods must not return null", enclosedElement);
}
String methodName = enclosedElement.getSimpleName().toString();
String fieldName = methodName;
for (int i = 0; i < fieldName.length() - 1; i++) {
char character = fieldName.charAt(i);
if (Character.isUpperCase(character)) {
fieldName = Character.toLowerCase(character) + fieldName.substring(i + 1);
