docs: @SuppressWarnings("checkstyle:all")
  	private ImageDescriptor getPackageFragmentIcon(IPackageFragment fragment) {
  		boolean containsJavaElements = false;
  		try {
  			containsJavaElements = fragment.hasChildren();
  		} catch (JavaModelException e) {
  			// assuming no children;
  		}
  		try {
  			if (!containsJavaElements) {
  				final Object[] resources = fragment.getNonJavaResources();
  				if (resources.length > 0) {
  					for (final Object child : resources) {
  						if (isSarlResource(child)) {
  							return JavaPluginImages.DESC_OBJS_PACKAGE;
  						}
  					}
  					return JavaPluginImages.DESC_OBJS_EMPTY_PACKAGE_RESOURCES;
  				}
  			}
  		} catch (JavaModelException exception) {
  			//
  		}
  		if (!containsJavaElements) {
  			return JavaPluginImages.DESC_OBJS_EMPTY_PACKAGE;
  		}
  		return JavaPluginImages.DESC_OBJS_PACKAGE;
  	}