code: public static boolean isProjectSource(String path) {
          for (Pattern grailsAppResourcePattern : patterns) {
              Matcher m = grailsAppResourcePattern.matcher(path);
              if (m.find()) {
                  return true;
              }
          }
          return false;
      }
docs: Checks whether the specified path is a Grails path.
  
  @param path The path to check
  @return true if it is a Grails path