diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php
index 260e4772f3..3777d2b254 100644
--- a/core/lib/Drupal/Core/DrupalKernel.php
+++ b/core/lib/Drupal/Core/DrupalKernel.php
@@ -299,10 +299,21 @@ public function __construct($environment, $class_loader, $allow_dumping = TRUE,
   /**
    * Determine the application root directory based on assumptions.
    *
+   * This implementation assumes that :-
+   *
+   * - the current namespace is two levels deep
+   * - the application root is then two levels higher in the directory structure
+   *
    * @return string
    *   The application root.
    */
   protected static function guessApplicationRoot() {
+    // Guess the application root by:
+    //
+    // - removing the namespace directories from the path.
+    // - getting the path to the directory two levels up from the path
+    //   determined in the previous step.
+    //
     return dirname(dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__))));
   }
 
