code: public static URL getLocation(Class self) {
          CodeSource codeSource = self.getProtectionDomain().getCodeSource();
  
          return null == codeSource ? null : codeSource.getLocation();
      }
docs: Gets the url of the jar file/source file containing the specified class
  
  @param self the class
  @return the url of the jar, {@code null} if the specified class is from JDK
  @since 2.5.0