public class Test {
  void foo(String container) {
      newMethod(container);
  }

    private void newMethod(String container) {
        String parent;
        if (container == null && (parent = null) != null && parent != null) {}
    }
}