code: private Set<JavaClass> getDeclaredExceptions(Method method) throws ClassNotFoundException {
          ExceptionTable et = method.getExceptionTable();
          if ((et == null) || (et.getLength() == 0)) {
              return Collections.<JavaClass> emptySet();
          }
  
          Set<JavaClass> exceptions = new HashSet<>();
          for (String en : et.getExceptionNames()) {
              JavaClass exCls = Repository.lookupClass(en);
              if (!exCls.instanceOf(runtimeExceptionClass)) {
                  exceptions.add(exCls);
              }
          }
  
          return exceptions;
      }
docs: retrieves the set of non-runtime exceptions that are declared to be thrown by the method
  
  @param method
  the currently parsed method
  
  @return the set of exceptions thrown
  
  @throws ClassNotFoundException
  if an exception class is not found