Fork from https://android.googlesource.com/platform/external/doclava