private void addMethodParameter(Variable variable) {
// only add a new method parameter, if it wasn't already one...
if (!isMethodParameter(variable)) {
ParameterInfo newParameter = new ParameterInfo(
((Identifier) variable.getName()).getName());
ITypeBinding binding = variable.resolveTypeBinding();
if (binding != null) {
if (binding.isArray()) {
newParameter.setParameterType(TYPE_HINT_ARRAY);
} else if (binding.isClass()) {
newParameter.setParameterType(binding.getName());
}
}
fExtractedMethodParameters.add(newParameter);
}