code: public static boolean isStaticSelector(JCTree base, Names names) {
          if (base == null)
              return false;
          switch (base.getTag()) {
              case IDENT:
                  JCIdent id = (JCIdent)base;
                  return id.name != names._this &&
                          id.name != names._super &&
                          isStaticSym(base);
              case SELECT:
                  return isStaticSym(base) &&
                      isStaticSelector(((JCFieldAccess)base).selected, names);
              case TYPEAPPLY:
              case TYPEARRAY:
                  return true;
              case ANNOTATED_TYPE:
                  return isStaticSelector(((JCAnnotatedType)base).underlyingType, names);
              default:
                  return false;
          }
      }
docs: Return true if the AST corresponds to a static select of the kind A.B