boolean (@NotNull ASTNode node) { if (node.getPsi() instanceof PsiComment) { PsiElement ws = node.getPsi().getPrevSibling(); if (isWhiteSpaceWithoutLineFeeds(ws)) { PsiElement beforeWs = ws.getPrevSibling(); if (PsiUtil.isJavaToken(beforeWs, JavaTokenType.LBRACE)) { return true; } } } return false; }