public static void addConstructorFromSuperclassProposal(IAssistContext context, IProblemLocation problem, Collection proposals) { ASTNode selectedNode= problem.getCoveringNode(context);
public static void addConstructorFromSuperclassProposal(IInvocationContext context, IProblemLocation problem, Collection proposals) { ASTNode selectedNode= problem.getCoveringNode(context.getASTRoot());
	public static void addConstructorFromSuperclassProposal(IAssistContext context, IProblemLocation problem, Collection proposals) {		ASTNode selectedNode= problem.getCoveringNode(context);		if (!(selectedNode instanceof Name && selectedNode.getParent() instanceof TypeDeclaration)) {			return;		}		TypeDeclaration typeDeclaration= (TypeDeclaration) selectedNode.getParent();		ITypeBinding binding= typeDeclaration.resolveBinding();		if (binding == null || binding.getSuperclass() == null) {			return;		}		ICompilationUnit cu= context.getCompilationUnit();		IMethodBinding[] methods= binding.getSuperclass().getDeclaredMethods();		for (int i= 0; i < methods.length; i++) {			IMethodBinding curr= methods[i];			if (curr.isConstructor() && !Modifier.isPrivate(curr.getModifiers())) {				proposals.add(new ConstructorFromSuperclassProposal(cu, typeDeclaration, curr, 5));			}		}	}