final ArrayList<BeanProperty> list = new ArrayList<BeanProperty>(references.length);
for (final PsiReference reference : references) {
final PsiElement resolve = reference.resolve();
if (resolve instanceof PsiMethod) { // can be non-PsiMethod via ParamNameCustomConverter
final PsiMethod method = (PsiMethod)resolve;
final BeanProperty beanProperty = BeanProperty.createBeanProperty(method);
ContainerUtil.addIfNotNull(beanProperty, list);
}
}
return list;
}