}
public static DartNamedParameterDescription[] getParameters(DartComponent element, DartGenericSpecialization specialization) {
final DartFormalParameterList parameterList = PsiTreeUtil.getChildOfType(element, DartFormalParameterList.class);
final DartNamedFormalParameters namedFormalParameters = parameterList == null ? null : parameterList.getNamedFormalParameters();
if (namedFormalParameters == null) {
return new DartNamedParameterDescription[0];
}
final List<DartDefaultFormalNamedParameter> list = namedFormalParameters.getDefaultFormalNamedParameterList();
final DartNamedParameterDescription[] result = new DartNamedParameterDescription[list.size()];
for (int i = 0, size = list.size(); i < size; i++) {
final String normalFormalParameter =
DartPresentableUtil.getPresentableNormalFormalParameter(list.get(i).getNormalFormalParameter(), specialization);
final PsiElement valueElement = list.get(i).getExpression();