List<PatternDescription> (@NotNull PatternDeconstructionDescription description, int toRemove) { ArrayList<PatternDescription> shortKey = new ArrayList<>(); for (int i = 0; i < description.list().size(); i++) { if (toRemove == i) { continue; } shortKey.add(description.list().get(i)); } return shortKey; }