return function.getFunctionInfo();
}
}
else if (element1 instanceof PsiMethod) {
PsiMethod function = (PsiMethod)element1;
CfmlFunctionDescription javaMethodDescr =
new CfmlFunctionDescription(function.getName(), function.getReturnType().getPresentableText());
final PsiParameter[] psiParameters = function.getParameterList().getParameters();
final int paramsNum = psiParameters.length;
for (int i = 0; i < paramsNum; i++) {
PsiParameter psiParameter = psiParameters[i];
javaMethodDescr.addParameter(new CfmlFunctionDescription.CfmlParameterDescription(psiParameter.getName(),
psiParameter.getType()
.getPresentableText(), true));
}
return javaMethodDescr;
}