package de.plushnikov.intellij.plugin.lombokconfig;

public class ConfigIndexKey {
  private final String directoryName;
  private final String configKey;

  public ConfigIndexKey(String directoryName, String configKey) {
    this.directoryName = directoryName;
    this.configKey = configKey;
  }

  public String getDirectoryName() {
    return directoryName;
  }

  public String getConfigKey() {
    return configKey;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    ConfigIndexKey that = (ConfigIndexKey) o;

    if (configKey != null ? !configKey.equals(that.configKey) : that.configKey != null) {
      return false;
    }
    if (directoryName != null ? !directoryName.equals(that.directoryName) : that.directoryName != null) {
      return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    int result = directoryName != null ? directoryName.hashCode() : 0;
    result = 31 * result + (configKey != null ? configKey.hashCode() : 0);
    return result;
  }
}

@@ -680,24 +680,34 @@
 igKey.equals
+IgnoreCase
 (that.config
@@ -1087,16 +1087,30 @@
 nfigKey.
+toLowerCase().
 hashCode

make processiing of config.key case insensitive