if (manager != null) { ITextFileBuffer buffer= manager.getTextFileBuffer(path); if (buffer != null) return buffer.getDocument(); }
ITextFileBuffer buffer= manager.getTextFileBuffer(path); if (buffer != null) return buffer.getDocument();
	private IDocument getDocument(ICompilationUnit cu) {		IPath path= cu.getPath();		ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager();		try {			manager.connect(path, null);		} catch (CoreException e) {			return null;		}				try {			if (manager != null) {				ITextFileBuffer buffer= manager.getTextFileBuffer(path);				if (buffer != null)					return buffer.getDocument();			}		} finally {			try {				manager.disconnect(path, null);			} catch (CoreException e) {				return null;			}		}		return null;	}