final PsiMethod resultMethod;
final PsiType returnType = fromMethod.getReturnType();
if (null == returnType) {
resultMethod = elementFactory.createConstructor(fromMethod.getName());
} else {
resultMethod = elementFactory.createMethod(fromMethod.getName(), returnType);
}
final PsiTypeParameterList fromMethodTypeParameterList = fromMethod.getTypeParameterList();
if (null != fromMethodTypeParameterList) {
PsiTypeParameterList typeParameterList = PsiMethodUtil.createTypeParameterList(fromMethodTypeParameterList);