private void checkAnonymousType(String name){
  if (name.contains("$")) {
    String superClass=name.substring(0,name.lastIndexOf('$'));
    checkAnonymousType(superClass);
    if (Character.isDigit(name.charAt(name.lastIndexOf('$') + 1))) {
      TypeElement superType=TypeNameUtil.fromInternalName(superClass);
      dl.newDep(superType,mainClass,JavaRelation.ANONYMOUS_TYPE);
    }
  }
}

private void checkAnonymousType ( String name ) { if ( name . contains ( "$" ) ) { String superClass = name . substring ( 0 , name . lastIndexOf ( '$' ) ) ; checkAnonymousType ( superClass ) ; if ( Character . isDigit ( name . charAt ( name . lastIndexOf ( '$' ) + 1 ) ) ) { TypeElement superType = TypeNameUtil . fromInternalName ( superClass ) ; dl . newDep ( superType , mainClass , JavaRelation . ANONYMOUS_TYPE ) ; } } }
check if the given internal name is an anonymous class . if so , generate the appropriate dependencies .
