code: public boolean accept(final File f) {
          if (f == null || !f.exists() || !f.canRead()) {
              return false;
          } // end of if
  
          if (f.isDirectory()) {
              return true;
          } // end of if
  
          // ---
  
          final String name = f.getName();
  
          if (!name.endsWith(".jar")) {
              return false;
          } // end of if
  
          // ---
  
          try {
              return JDBC.loadDriver(f.toURI().toURL()) != null;
          } catch (java.net.MalformedURLException e) {
              System.err.println("Invalid url to JDBC driver");
              return false;
          } // end of catch
      }
docs: {@inheritDoc}