boolean (PsiParameter[] parameters, Collection<BuilderInfo> builderInfos) { if (parameters.length != builderInfos.size()) { return false; } final Iterator<BuilderInfo> builderInfoIterator = builderInfos.iterator(); for (PsiParameter psiParameter : parameters) { final BuilderInfo builderInfo = builderInfoIterator.next(); if (!psiParameter.getType().isAssignableFrom(builderInfo.getFieldType())) { return false; } } return true; }