public static String process ( TestCase testCase ) {
  final String S = testCase . S ;
  final String T = testCase . T ;
  Map < Character , Integer > sCharFreq = countCharFrequencies ( S ) ;
  Map < Character , Integer > tCharFreq = countCharFrequencies ( T ) ;
  Map < Integer , Integer > sFreqMap = toFreqMap ( sCharFreq ) ;
  Map < Integer , Integer > tFreqMap = toFreqMap ( tCharFreq ) ;
  return sFreqMap . equals ( tFreqMap ) ? YES : NO ;
}

public static String process ( TestCase testCase ) { final String S = testCase . S ; final String T = testCase . T ; Map < Character , Integer > sCharFreq = countCharFrequencies ( S ) ; Map < Character , Integer > tCharFreq = countCharFrequencies ( T ) ; Map < Integer , Integer > sFreqMap = toFreqMap ( sCharFreq ) ; Map < Integer , Integer > tFreqMap = toFreqMap ( tCharFreq ) ; return sFreqMap . equals ( tFreqMap ) ? YES : NO ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration (modifiers) type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration (modifiers) type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier) (type_identifier))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier) (type_identifier))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier) (type_identifier))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier) (type_identifier))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (return_statement (ternary_expression condition: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) consequence: (identifier) alternative: (identifier)))))