code: @Deprecated
      public static int has2DCoordinatesNew(IAtomContainer container) {
          if (container == null) return 0;
  
          boolean no2d = false;
          boolean with2d = false;
          for (IAtom atom : container.atoms()) {
              if (atom.getPoint2d() == null) {
                  no2d = true;
              } else {
                  with2d = true;
              }
          }
          if (!no2d && with2d) {
              return 2;
          } else if (no2d && with2d) {
              return 1;
          } else {
              return 0;
          }
      }
docs: Determines if this AtomContainer contains 2D coordinates for some or all molecules.
  See comment for center(IAtomContainer atomCon, Dimension areaDim, HashMap renderingCoordinates) for details on coordinate sets
  
  
  @param container the molecule to be considered
  @return    0 no 2d, 1=some, 2= for each atom
  @deprecated use {@link #get2DCoordinateCoverage(org.openscience.cdk.interfaces.IAtomContainer)} for determining
  partial coordinates
  @see #get2DCoordinateCoverage(org.openscience.cdk.interfaces.IAtomContainer)