@Override
	public IHyperlink[] detectHyperlinks(ITextViewer textViewer,
			IRegion region, boolean canShowMultipleHyperlinks) {

		ITextEditor editor = (ITextEditor) getAdapter(ITextEditor.class);
		if (!editor.getTitle().endsWith(".java")) {
			return null;
		}
		IDocumentProvider dp = editor.getDocumentProvider();
		StringUtils textUtils = new StringUtils();
		textUtils.setDoc(dp.getDocument(editor.getEditorInput()).get());
		textUtils.setCursorPosition(StringHandler.getCursorPosition());
		boolean val = textUtils.proccess();
		int cursorPosition = textUtils.getCursorPosition();
		if (cursorPosition < 0) {
			return null;
		}
		if (!val) {
			return null;
		}

		return new IHyperlink[] { new MultiLineHyperlink(new Region(
				textUtils.getStart(), textUtils.getLength())) };
	}