boolean (PsiStatement[] statements) { return Arrays.stream(statements) .filter(s -> s instanceof PsiIfStatement) .map(s -> getStatements((PsiIfStatement)s)) .filter(ss -> ss.length != 0) .anyMatch(ss -> Arrays.stream(ss).allMatch(s -> getAssignment(s) != null)); }