private static void showQueryContextHint(Editor editor,String hintText){
  final HintManagerImpl hintManager=HintManagerImpl.getInstanceImpl();
  final JComponent label=HintUtil.createInformationLabel(hintText);
  final LightweightHint lightweightHint=new LightweightHint(label);
  final Point hintPosition=hintManager.getHintPosition(lightweightHint,editor,HintManager.UNDER);
  hintManager.showEditorHint(lightweightHint,editor,hintPosition,0,2000,false,HintManager.UNDER);
}

private static void showQueryContextHint ( Editor editor , String hintText ) { final HintManagerImpl hintManager = HintManagerImpl . getInstanceImpl ( ) ; final JComponent label = HintUtil . createInformationLabel ( hintText ) ; final LightweightHint lightweightHint = new LightweightHint ( label ) ; final Point hintPosition = hintManager . getHintPosition ( lightweightHint , editor , HintManager . UNDER ) ; hintManager . showEditorHint ( lightweightHint , editor , hintPosition , 0 , 2000 , false , HintManager . UNDER ) ; }
shows a query context hint under the current caret position . the hint hides after a few seconds or when the user interacts with the editor
