private static boolean areValid ( int a , int b , int c , int d ) {
  int paritySum = ( a % 2 ) + ( b % 2 ) + ( c % 2 ) + ( d % 2 ) ;
  return a >= 0 && b >= 0 && c >= 0 && d >= 0 && paritySum <= 1 ;
}

private static boolean areValid ( int a , int b , int c , int d ) { int paritySum = ( a % 2 ) + ( b % 2 ) + ( c % 2 ) + ( d % 2 ) ; return a >= 0 && b >= 0 && c >= 0 && d >= 0 && paritySum <= 1 ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (return_statement (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))))