src/main/java/chalmers/pimp/model/canvas/LayerManager.java
private ILayer findMatch(IReadOnlyLayer readOnlyLayer) {
    Objects.requireNonNull(readOnlyLayer);
    for (ILayer layer : layers) {
      if (layer == readOnlyLayer) {
        return layer;
      }
    }
    return null;
  }
/**
   * Searches for the supplied layer and returns it if it's found. Note! This method compares the
   * actual references.
   *
   * @param readOnlyLayer the layer to look for.
   * @return a layer instance if a match is found; {@code null} otherwise.
   * @throws NullPointerException if the supplied layer is {@code null}.
   */
Searches for the supplied layer and returns it if it's found. Note. This method compares the
actual references.

@param readOnlyLayer the layer to look for.
@return a layer instance if a match is found;  null otherwise.
@throws NullPointerException if the supplied layer is  null.
Searches for the supplied layer and returns it if it ' s found . Note . This method compares the actual references . @param readOnlyLayer the layer to look for . @return a layer instance if a match is found ; null otherwise . @throws NullPointerException if the supplied layer is null .
private ILayer findMatch(IReadOnlyLayer readOnlyLayer) {
    Objects.requireNonNull(readOnlyLayer);
    for (ILayer layer : layers) {
      if (layer == readOnlyLayer) {
        return layer;
      }
    }
    return null;
  }
private ILayer findMatch ( IReadOnlyLayer readOnlyLayer ) { Objects . requireNonNull ( readOnlyLayer ) ; for ( ILayer layer : layers ) { if ( layer == readOnlyLayer ) { return layer ; } } return null ; }
Searches for the supplied layer and returns it if it's found.
Searches for the supplied layer and returns it if it ' s found .