if (overloadedMethods.contains(method)) { appendMethodComment(newMethod, method); String[] params= method.getParameterTypes();
if (overloadedMethods.contains(testedMethod)) { appendMethodComment(newMethod, testedMethod); String[] params= testedMethod.getParameterTypes();
	protected void createTestMethodStubs(IType type) throws JavaModelException {		IMethod[] methods= fPage2.getCheckedMethods();		if (methods.length == 0)			return;		/* find overloaded methods */		IMethod[] allMethodsArray= fPage2.getAllMethods();		List allMethods= new ArrayList();		allMethods.addAll(Arrays.asList(allMethodsArray));		List overloadedMethods= getOveloadedMethods(allMethods);				/* used when for example both sum and Sum methods are present. Then		 * sum -> testSum		 * Sum -> testSum1		 */		List newMethodsNames= new ArrayList();						for (int i = 0; i < methods.length; i++) {			IMethod method= methods[i];			String elementName= method.getElementName();			StringBuffer methodName= new StringBuffer(NewTestCaseCreationWizardPage2.PREFIX+Character.toUpperCase(elementName.charAt(0))+elementName.substring(1));			StringBuffer newMethod= new StringBuffer();			if (overloadedMethods.contains(method)) {				appendMethodComment(newMethod, method);				String[] params= method.getParameterTypes();				appendParameterNamesToMethodName(methodName, params);			}			/* Should I for examples have methods			 * 	void foo(java.lang.StringBuffer sb) {}			 *  void foo(mypackage1.StringBuffer sb) {}			 *  void foo(mypackage2.StringBuffer sb) {}			 * I will get in the test class:			 *  testFooStringBuffer()			 *  testFooStringBuffer1()			 *  testFooStringBuffer2()			 */			if (newMethodsNames.contains(methodName.toString())) {				int suffix= 1;				while (newMethodsNames.contains(methodName.toString() + Integer.toString(suffix)))					suffix++;				methodName.append(Integer.toString(suffix));			}			newMethodsNames.add(methodName.toString());			if (fPage2.getCreateFinalMethodStubsButtonSelection())				newMethod.append("final "); //$NON-NLS-1$			newMethod.append("public void "+methodName.toString()+"() {}\n\n"); //$NON-NLS-1$ //$NON-NLS-2$			type.createMethod(newMethod.toString(), null, false, null);			}	}