public static PsiElement[] collect(final Matcher matcher) {
    if (matcher == null) return PsiElement.EMPTY_ARRAY;
    final List<PsiElement> found = process(matcher, false);
    return PsiUtilCore.toPsiElementArray(found);
  }
public static PsiElement[] collect(final Matcher matcher)