Optional<PsiMethod> (@NotNull PsiClass parentClass, Collection<BuilderInfo> builderInfos) { final Collection<PsiMethod> classConstructors = PsiClassUtil.collectClassConstructorIntern(parentClass); return classConstructors.stream() .filter(m -> sameParameters(m.getParameterList().getParameters(), builderInfos)) .findFirst(); }