Bug 62868 Error introduced by "create method definition in super class/interface" Quick Assist [quick assist]
I200405190010 I used this quick assist but did not notice that my method was protected and that the method got created in an interface. If a method is protected and it only implements an interface then the quick assist should not be enabled.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewDefiningMethodProposal.java
private static final String KEY_TYPE= "type"; 
	
	private final IMethodBinding fMethod;
	private final String[] fParamNames;
	public NewDefiningMethodProposal(String label, ICompilationUnit targetCU, ASTNode invocationNode, ITypeBinding binding, IMethodBinding method, String[] paramNames, int relevance) {
		super(label,targetCU,invocationNode,binding,relevance,null);
		fMethod= method;
		fParamNames= paramNames;
		
		ImageDescriptor desc= JavaElementImageProvider.getMethodImageDescriptor(binding.isInterface(), method.getModifiers());
		setImage(JavaPlugin.getImageDescriptorRegistry().get(desc));
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jdt.internal.ui.text.correction.AbstractMethodCompletionProposal#isConstructor()
	 */
	protected boolean isConstructor() {
		return fMethod.isConstructor();
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jdt.internal.ui.text.correction.AbstractMethodCompletionProposal#addNewParameters(org.eclipse.jdt.core.dom.rewrite.ASTRewrite, java.util.List, java.util.List)
	 */
	protected void addNewParameters(ASTRewrite rewrite, List takenNames, List params) throws CoreException {
		AST ast= rewrite.getAST();
		ImportRewrite importRewrite= getImportRewrite();
		ITypeBinding[] bindings= fMethod.getParameterTypes();
		
		IJavaProject project= getCompilationUnit().getJavaProject();
		String[] paramNames= StubUtility.suggestArgumentNames(project, fParamNames);
		
		for (int i= 0; i < bindings.length; i++) {