docs: protected String getBasePath(String rootPath) {
  
          if (rootPath.endsWith(INHERITANCE_CONFIG_FILE_NAME)) {
              return rootPath.substring(0, rootPath.length() - INHERITANCE_CONFIG_FILE_NAME.length());
          }
          return rootPath;
      }