diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/folding/GroovyFoldingBuilder.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/folding/GroovyFoldingBuilder.java index 5d6fa18441e3..eb2748512de9 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/folding/GroovyFoldingBuilder.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/folding/GroovyFoldingBuilder.java @@ -169,16 +169,7 @@ public class GroovyFoldingBuilder implements FoldingBuilder, GroovyElementTypes, } private static boolean isWellEndedComment(PsiElement element) { - if (element instanceof PsiComment) { - PsiComment comment = (PsiComment)element; - ASTNode node = comment.getNode(); - if (node != null && - node.getElementType() == mML_COMMENT && - node.getText().endsWith("*/")) { - return true; - } - } - return false; + return element.getText().endsWith("*/"); } private static boolean isWellEndedString(PsiElement element) {