docs: private void checkConstantTag(Constant constant, int expectedTag) throws InvalidClassFileFormatException {
          if (constant.tag != expectedTag) {
              throw new InvalidClassFileFormatException(expectedClassDescriptor, codeBaseEntry);
          }
      }