private String getIndent(IDocument d, DocumentCommand c) { if (c.offset < 0 || d.getLength() == 0) return null;
private String getIndent(IDocument document, DocumentCommand command) {  StringBuffer buf= new StringBuffer();  int docLength= document.getLength(); if (command.offset == -1 || docLength == 0) return buf.toString();
	private String getIndent(IDocument d, DocumentCommand c) {		if (c.offset < 0 || d.getLength() == 0)			return null;		try {			int p= (c.offset == d.getLength() ? c.offset - 1 : c.offset);			int line= d.getLineOfOffset(p);			// evaluate the line with the opening bracket that matches out closing bracket			int indLine= findMatchingOpenBracket(d, line, c.offset, 1);			if (indLine != -1 && indLine != line)				// take the indent of the found line				return getIndentOfLine(d, indLine);		} catch (BadLocationException e) {			JavaPlugin.log(e);		}		return null;	}