code: public static URL codeLocationFromPath(String filePath) {
          try {
              return new File(filePath).toURI().toURL();
          } catch (Exception e) {
              throw new InvalidCodeLocation(filePath);
          }
      }
docs: Creates a code location URL from a file path
  
  @param filePath the file path
  @return A URL created from File
  @throws InvalidCodeLocation if URL creation fails