Lets put this logic in a new method in ProjectUtil called
ProjectUtil.isMavenProject()