code: public URL getResource(String name) {
          if (isCorePlugin()) {
              URL url = getCoreResource(name);
              if (url != null &&  IO.verifyURL(url)) {
                  return url;
              }
          }
          if (loadedFrom != null) {
              try {
                  URL url = resourceFromPlugin(loadedFrom, name);
                  LOG.debug("Trying to load {} from {}", name, url);
                  if (IO.verifyURL(url)) {
                      return url;
                  }
              } catch (MalformedURLException e) {
                  assert true;
              }
  
          }
  
          if (classLoaderForResources instanceof URLClassLoader) {
  
              URLClassLoader urlClassLoader = (URLClassLoader) classLoaderForResources;
              LOG.debug("Trying to load {} using URLClassLoader.findResource", name);
              LOG.debug("  from urls: {}", Arrays.asList(urlClassLoader.getURLs()));
              URL url = urlClassLoader.findResource(name);
              if (url == null) {
                  url = urlClassLoader.findResource("/" + name);
              }
              if (IO.verifyURL(url)) {
                  return url;
              }
          }
  
          LOG.debug("Trying to load {} using ClassLoader.getResource", name);
          URL url = classLoaderForResources.getResource(name);
          if (url == null) {
              url = classLoaderForResources.getResource("/" + name);
          }
          if (IO.verifyURL(url)) {
              return url;
          }
  
          return null;
      }
docs: Get a resource using the URLClassLoader classLoader. We try findResource
  first because (based on experiment) we can trust it to prefer resources
  in the jarfile to resources on the filesystem. Simply calling
  classLoader.getResource() allows the filesystem to override the jarfile,
  which can mess things up if, for example, there is a findbugs.xml or
  messages.xml in the current directory.
  
  @param name
  resource to get
  @return URL for the resource, or null if it could not be found