FIXED IDEA-164941 Confusing "Custom region" records in File Structure

This commit is contained in:
Rustam Vishnyakov
2016-12-05 13:02:17 +03:00
parent c6f72ff025
commit c0f362e326
@@ -79,7 +79,7 @@ public class CustomRegionStructureUtil {
private static Collection<CustomRegionTreeElement> collectCustomRegions(@NotNull PsiElement rootElement, @NotNull Set<TextRange> ranges) {
Iterator<PsiElement> iterator = SyntaxTraverser.psiTraverser(rootElement)
.regard(element -> isCustomRegionCommentCandidate(element) && !isInsideRanges(element, ranges))
.filter(element -> isCustomRegionCommentCandidate(element) && !isInsideRanges(element, ranges))
.iterator();
List<CustomRegionTreeElement> customRegions = ContainerUtil.newSmartList();