Changed patternMatch method to accept a JavaProjectBuilder object