public static TYPE_1 METHOD_1 ( java.util.Collection < TYPE_1 > VAR_1 ) { double x = 0.0 ; double y = 0.0 ; for ( TYPE_1 p : VAR_1 ) { if ( p == null ) { return null ; } x += p . METHOD_2 ( ) ; y += p . METHOD_3 ( ) ; } x /= VAR_1 . size ( ) ; y /= VAR_1 . size ( ) ; return new TYPE_2 ( x , y ) ; }

public static TYPE_1 METHOD_1 ( java.util.Collection < TYPE_1 > VAR_1 ) { if ( VAR_1 . isEmpty ( ) ) { return null ; } double x = 0.0 ; double y = 0.0 ; for ( TYPE_1 p : VAR_1 ) { if ( p == null ) { return null ; } x += p . METHOD_2 ( ) ; y += p . METHOD_3 ( ) ; } x /= VAR_1 . size ( ) ; y /= VAR_1 . size ( ) ; return new TYPE_2 ( x , y ) ; }
