List<String> (@NotNull final FQNamesProvider provider) { final List<String> result = new ArrayList<>(); for (final String name : provider.getNames()) { final String component = QualifiedName.fromDottedString(name).getLastComponent(); if (component != null) { result.add(component); } } return result; }