boolean (int len, PsiStatement branch, int duplicatedStatementsLen) { if (len == duplicatedStatementsLen) { PsiBlockStatement blockStatement = tryCast(branch, PsiBlockStatement.class); if (blockStatement != null && PsiTreeUtil.getChildOfType(blockStatement.getCodeBlock(), PsiComment.class) == null) { return true; } } return false; }