GrDocComment (GrDocCommentOwner owner) { if (owner.getFirstChild() instanceof GrDocComment) { return ((GrDocComment)owner.getFirstChild()); } PsiElement element = owner instanceof GrVariable && owner.getParent() instanceof GrVariableDeclaration ? owner.getParent() : owner; element = skipWhiteSpacesAndStopOnDoc(element, false); if (element instanceof GrDocComment) return (GrDocComment)element; return null; }