BaseInjection (@NotNull BaseInjection other) { assert this != other; myInjectedLanguageId = other.getInjectedLanguageId(); myPrefix = other.getPrefix(); mySuffix = other.getSuffix(); myDisplayName = other.getDisplayName(); setValuePattern(other.getValuePattern()); setIgnorePattern(other.getIgnorePattern()); mySingleFile = other.mySingleFile; myPlaces = other.getInjectionPlaces().clone(); return this; }