private static boolean isMultilineLambda(PsiStatement body, PsiStatement[] statements) {
        if (statements.length == 1) return false;
        if (statements.length > 3) return true;
        if (getVariableToInline(statements[0], body) == null) return true;
        return statements.length == 3 && getVariableToInline(statements[1], body) == null;
      }
private static boolean isMultilineLambda(PsiStatement body, PsiStatement[] statements)