boolean (PsiElement @NotNull [] elements1, PsiElement @NotNull [] elements2) { return (elements1.length == 0 && isLeftLooseMatching()) || (elements2.length == 0 && isRightLooseMatching()) || matchSequentially(elements1, elements2); }