code: private boolean getPresenceOfHydroxy(IAtomContainer ac, IAtom atom) {
          IAtom neighbour0 = (IAtom) ac.getConnectedAtomsList(atom).get(0);
          List first = null;
          if (neighbour0.getSymbol().equals("C")) {
              first = ac.getConnectedAtomsList(neighbour0);
              for (int i = 0; i < first.size(); i++) {
                  IAtom conAtom = (IAtom) first.get(i);
                  if (conAtom.getSymbol().equals("O")) {
                      if (ac.getBond(neighbour0, conAtom).getOrder() == IBond.Order.SINGLE) {
                          if (ac.getConnectedBondsCount(conAtom) > 1 && getHydrogenCount(ac, conAtom) == 0) {
                              return false;
                          } else {
                              return true;
                          }
                      }
                  }
              }
          }
          return false;
      }
docs: Gets the presenceOf Hydroxy group attribute of the XLogPDescriptor object.
  
  @param  ac    Description of the Parameter
  @param  atom  Description of the Parameter
  @return       The presenceOfCarbonil value