code: ClassSymbol getClassSymbol(String name) {
              // Name may contain nested class qualification.
              // Generate candidate flatnames with successively shorter
              // package qualifiers and longer nested class qualifiers.
              int nameLen = name.length();
              char[] nameChars = name.toCharArray();
              int idx = name.length();
              for (;;) {
                  Name nameImpl = names.fromChars(nameChars, 0, nameLen);
                  ModuleSymbol mod = syms.inferModule(Convert.packagePart(nameImpl));
                  ClassSymbol s = mod != null ? syms.getClass(mod, nameImpl) : null;
                  if (s != null)
                      return s; // found it!
                  idx = name.substring(0, idx).lastIndexOf('.');
                  if (idx < 0) break;
                  nameChars[idx] = '$';
              }
              return null;
          }
docs: Retrieve class symbol by fully-qualified name.