private SourceFile findFileInProject(ProjectElement currentProject)
        {
            IEnumerable <SourceFile> files = currentProject.GetFilesByName(hqlNamedQueryFileName);

            if (files.Count() > 0)
            {
                return(files.First());
            }
            else
            {
                return(null);
            }
        }
 private SourceFile findFileInProject(ProjectElement currentProject)
 {
     IEnumerable<SourceFile> files = currentProject.GetFilesByName(hqlNamedQueryFileName);
     if (files.Count() > 0)
         return files.First();
     else
         return null;
 }