boolean (PsiElement patternElement, PsiElement matchElement) { if (myMatchingVisitor.getMatchContext().getOptions().isLooseMatching()) { if (matchElement instanceof PsiBlockStatement) { final PsiCodeBlock codeBlock = ((PsiBlockStatement)matchElement).getCodeBlock(); if (patternElement instanceof PsiBlockStatement || codeBlock.getStatementCount() == 1) { matchElement = codeBlock.getFirstChild(); } } if (patternElement instanceof PsiBlockStatement) { patternElement = ((PsiBlockStatement)patternElement).getCodeBlock().getFirstChild(); } } return myMatchingVisitor.matchSequentially(patternElement, matchElement); }