code: private boolean isComment(String line) {
          String trimmed = line.trim();
          if (trimmed.length() == 0) {
              return false;
          }
          return trimmed.charAt(0) == '#';
      }
docs: A comment is a line whose first non-blank character is a hash ('#').