@Nullable private static Help findHelp(@NotNull final PsiElement element){
  if (!(element instanceof CommandLinePart)) {
    return null;
  }
  final CommandLinePart commandLinePart=(CommandLinePart)element;
  final Command realCommand=commandLinePart.findRealCommand();
  if (realCommand == null) {
    return null;
  }
  final CommandLineElement commandLineElement=PyUtil.as(element,CommandLineElement.class);
  if (commandLineElement == null) {
    return null;
  }
  final MyCommandHelpObtainer helpObtainer=new MyCommandHelpObtainer();
  commandLineElement.accept(helpObtainer);
  return helpObtainer.myResultHelp;
}

@ Nullable private static Help findHelp ( @ NotNull final PsiElement element ) { if ( ! ( element instanceof CommandLinePart ) ) { return null ; } final CommandLinePart commandLinePart = ( CommandLinePart ) element ; final Command realCommand = commandLinePart . findRealCommand ( ) ; if ( realCommand == null ) { return null ; } final CommandLineElement commandLineElement = PyUtil . as ( element , CommandLineElement . class ) ; if ( commandLineElement == null ) { return null ; } final MyCommandHelpObtainer helpObtainer = new MyCommandHelpObtainer ( ) ; commandLineElement . accept ( helpObtainer ) ; return helpObtainer . myResultHelp ; }
searches for help text for certain element
