docs: private boolean checkDeploymentDir(File directory) {
          if (!directory.exists()) {
              if (deploymentDirAccessible) {
                  deploymentDirAccessible = false;
                  ROOT_LOGGER.directoryIsNonexistent(deploymentDir.getAbsolutePath());
              }
          }
          else if (!directory.isDirectory()) {
              if (deploymentDirAccessible) {
                  deploymentDirAccessible = false;
                  ROOT_LOGGER.isNotADirectory(deploymentDir.getAbsolutePath());
              }
          }
          else if (!directory.canRead()) {
              if (deploymentDirAccessible) {
                  deploymentDirAccessible = false;
                  ROOT_LOGGER.directoryIsNotReadable(deploymentDir.getAbsolutePath());
              }
          }
          else if (!directory.canWrite()) {
              if (deploymentDirAccessible) {
                  deploymentDirAccessible = false;
                  ROOT_LOGGER.directoryIsNotWritable(deploymentDir.getAbsolutePath());
              }
          } else {
              deploymentDirAccessible = true;
          }
  
          return deploymentDirAccessible;
      }