private boolean getCreateInSuperClassProposals(IInvocationContext context, ASTNode node, ArrayList resultingCollections) throws CoreException {
private static boolean getCreateInSuperClassProposals(IInvocationContext context, ASTNode node, ArrayList resultingCollections) throws CoreException {
	private boolean getCreateInSuperClassProposals(IInvocationContext context, ASTNode node, ArrayList resultingCollections) throws CoreException {		if (!(node instanceof SimpleName) || !(node.getParent() instanceof MethodDeclaration)) {			return false;		}		MethodDeclaration decl= (MethodDeclaration) node.getParent();		if (decl.getName() != node || decl.resolveBinding() == null) {			return false;		}		ICompilationUnit cu= context.getCompilationUnit();		CompilationUnit astRoot= context.getASTRoot();		IMethodBinding binding= decl.resolveBinding();		String methodName= binding.getName();		ITypeBinding[] paramTypes= binding.getParameterTypes();		ITypeBinding[] superTypes= Bindings.getAllSuperTypes(binding.getDeclaringClass());		if (resultingCollections == null) {			for (int i= 0; i < superTypes.length; i++) {				ITypeBinding curr= superTypes[i];				if (curr.isFromSource() && Bindings.findMethodInType(curr, methodName, paramTypes) == null) {					return true;				}			}			return false;		}		List params= decl.parameters();		String[] paramNames= new String[paramTypes.length];		for (int i = 0; i < params.size(); i++) {			SingleVariableDeclaration param= (SingleVariableDeclaration) params.get(i);			paramNames[i]= param.getName().getIdentifier();		}		for (int i= 0; i < superTypes.length; i++) {			ITypeBinding curr= superTypes[i];			if (curr.isFromSource()) {				IMethodBinding method= Bindings.findMethodInType(curr, methodName, paramTypes);				if (method == null) {					ITypeBinding typeDecl= curr.getTypeDeclaration();					ICompilationUnit targetCU= ASTResolving.findCompilationUnitForBinding(cu, astRoot, typeDecl);					if (targetCU != null) {						String label= Messages.format(CorrectionMessages.QuickAssistProcessor_createmethodinsuper_description, curr.getName());						resultingCollections.add(new NewDefiningMethodProposal(label, targetCU, astRoot, typeDecl, binding, paramNames, 6));					}				}			}		}		return true;	}