if (isJUnitProblem(context, locations)) return new IJavaCompletionProposal[] { new JUnitAddLibraryProposal(context) };
int res= isJUnitProblem(context, locations); if (res != 0) { ArrayList proposals= new ArrayList(1); IJavaProject javaProject= context.getCompilationUnit().getJavaProject(); if (JUnitStubUtility.is50OrHigher(javaProject) && ((res & JUNIT4) != 0)) { proposals.add(new JUnitAddLibraryProposal(true, context, 10)); } if ((res & JUNIT3) != 0) { proposals.add(new JUnitAddLibraryProposal(false, context, 8)); } return (IJavaCompletionProposal[]) proposals.toArray(new IJavaCompletionProposal[proposals.size()]); }
	public IJavaCompletionProposal[] getCorrections(final IInvocationContext context, IProblemLocation[] locations)  {		if (isJUnitProblem(context, locations))			return new IJavaCompletionProposal[] { new JUnitAddLibraryProposal(context) };		return null;	}