void () { PsiFile file = getFile(); PsiElement first = file.getFirstChild(); if (first instanceof PsiComment && ((PsiComment)first).getTokenType() == ShTypes.SHEBANG) first = getNextSibling(first); PsiElement next = first; while (next instanceof PsiComment || ((next instanceof ASTNode) && ((ASTNode)next).getElementType() == ShTypes.LINEFEED)) { next = getNextSibling(next); } if (first != null) { checkComments(first, next, true); } else { checkComments(null, null, true); } }