boolean (PsiLabeledStatement statement) { if (statement.getStatement() == null) { return true; } final PsiIdentifier identifier = statement.getLabelIdentifier(); final PsiElement sibling = identifier.getNextSibling(); if (!PsiUtil.isJavaToken(sibling, JavaTokenType.COLON)) { return false; } PsiElement element = sibling.getNextSibling(); return element instanceof PsiComment && ((PsiComment)element).getTokenType() == JavaTokenType.END_OF_LINE_COMMENT; }