public boolean hasAssists(IAssistContext context) throws CoreException {
public boolean hasAssists(IInvocationContext context) throws CoreException {
	public boolean hasAssists(IAssistContext context) throws CoreException {		ICompilationUnit cu= context.getCompilationUnit();		IDocument document= getDocument(cu);					int offset= context.getSelectionOffset();		int length= context.getSelectionLength();		try {			int startLine= document.getLineOfOffset(offset);			int endLine= document.getLineOfOffset(offset + length);			IRegion region= document.getLineInformation(endLine);			return ((startLine  < endLine) || (length > 0 && offset == region.getOffset() && length == region.getLength()));		} catch (BadLocationException e) {			return false;		}	}	