List<String> (List<Value> allValues, PsiSwitchLabelStatementBase label) { Set<Object> constants = getLabelConstants(label); return StreamEx.of(allValues).filter(v -> constants.contains(v.myValue)).map(v -> v.myName).toList(); }