public static boolean isLeaf(Object userObject){
  boolean leaf=(userObject instanceof TextSymbolizer) || (userObject instanceof RasterSymbolizer) || showCheckbox(userObject);
  return leaf;
}

public static boolean isLeaf ( Object userObject ) { boolean leaf = ( userObject instanceof TextSymbolizer ) || ( userObject instanceof RasterSymbolizer ) || showCheckbox ( userObject ) ; return leaf ; }
checks if is leaf .
