private boolean isMatchingInnerClass(String s) {
    int i;

    while (0 < (i = s.lastIndexOf('$'))) {
      s = s.substring(0, i);
      if (matchInnerClassesOf.contains(s)) {
        return true;
      }
    }

    return false;
  }
Checks to see if a specified class name should be considered a match due to previous matches.

@param s {@code non-null;} class name
@return true if this class should be considered a match
android/android_framework/dex-maker/src/main/java/com/android/dx/command/annotool/AnnotationLister.java