if ((kind & SimilarElementsRequestor.INTERFACES) != 0) { String label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createinterfaceusingwizard.description", typeName); proposals.add(new NewCUCompletionUsingWizardProposal(label, cu, node, false, relevance));
if ((kind & SimilarElementsRequestor.INTERFACES) != 0) { proposals.add(new NewCUCompletionUsingWizardProposal(cu, node, false, enclosingPackage, relevance));
	private static void addNewTypeProposals(ICompilationUnit cu, Name node, int kind, ArrayList proposals) {		String typeName= ASTResolving.getSimpleName(node);		while (true) {			String addedCUName= typeName + ".java"; //$NON-NLS-1$			if (!JavaConventions.validateCompilationUnitName(addedCUName).matches(IStatus.ERROR)) {				int relevance= 0;				ICompilationUnit addedCU;				if (node.isSimpleName()) {					addedCU= ((IPackageFragment) cu.getParent()).getCompilationUnit(addedCUName);				} else {					IPackageFragmentRoot root= (IPackageFragmentRoot) cu.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);					String packName= ASTResolving.getQualifier(node);					addedCU= root.getPackageFragment(packName).getCompilationUnit(addedCUName);					typeName= JavaModelUtil.concatenateName(packName, typeName);					if (Character.isLowerCase(packName.charAt(0))) {						relevance++;					}									}				if (Character.isUpperCase(addedCUName.charAt(0))) {					relevance++;				}				if (!addedCU.exists()) {					if ((kind & SimilarElementsRequestor.CLASSES) != 0) {						String label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createclassusingwizard.description", typeName); //$NON-NLS-1$			            proposals.add(new NewCUCompletionUsingWizardProposal(label, cu, node, true, relevance));					}					if ((kind & SimilarElementsRequestor.INTERFACES) != 0) {						String label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createinterfaceusingwizard.description", typeName); //$NON-NLS-1$			            proposals.add(new NewCUCompletionUsingWizardProposal(label, cu, node, false, relevance));					}								}			}			if (node.isSimpleName()) {				return;			}			node= ((QualifiedName) node).getQualifier();			typeName= ASTResolving.getSimpleName(node);			if (Character.isLowerCase(typeName.charAt(0))) {				return;			}		}	}