code: public static String getPhase(String symbol) {
          Elements e = Elements.ofString(symbol);
          for (Phase p : Phase.values())
              if (p.contains(e)) return p.name();
          return null;
      }
docs: Get the phase of the element.
  
  @param symbol the symbol of the element
  @return the phase of the element