code: public Optional<File> getLibDirectory() {
          File[] directories = getParentDirectory().listFiles(new FileFilter() {
              @Override
              public boolean accept(File file) {
                  return file.isDirectory() && file.getName().endsWith("lib");
              }
          });
          if (directories.length == 0 || directories[0] == null) {
              return Optional.empty();
          }
          return Optional.ofNullable(directories[0].getAbsoluteFile());
      }
docs: Gets the lib directory (which, by convention, should be located in the parent directory for every function method)
  @return     the optional directory as File
  @see        java.io.File