static CompilationUnit parsePartialCompilationUnit( ICompilationUnit unit, int position, boolean resolveBindings) {
static CompilationUnit parsePartialCompilationUnit(ICompilationUnit unit) {
	static CompilationUnit parsePartialCompilationUnit(		ICompilationUnit unit,		int position,		boolean resolveBindings) {						if (unit == null) {			throw new IllegalArgumentException();		}		try {			ASTParser c= ASTParser.newParser(AST.JLS3);			c.setSource(unit);			c.setFocalPosition(position);			c.setResolveBindings(resolveBindings);			c.setWorkingCopyOwner(null);			ASTNode result= c.createAST(null);			return (CompilationUnit) result;		} catch (IllegalStateException e) {			// convert ASTParser's complaints into old form			throw new IllegalArgumentException();		}	}