Extract inner classes from JavaTree