List<String> (@NotNull PackageEntryTable value) { List<String> externalList = new ArrayList<>(); for (PackageEntry entry : value.getEntries()) { if (entry == PackageEntry.BLANK_LINE_ENTRY) { externalList.add(String.valueOf(BLANK_LINE_CHAR)); } else { StringBuilder entryBuilder = new StringBuilder(); if (entry.isStatic()) { entryBuilder.append("$"); } if (entry.isSpecial()) { entryBuilder.append("*"); } else { entryBuilder.append(entry.getPackageName()).append(".*"); if (entry.isWithSubpackages()) { entryBuilder.append("*"); } } externalList.add(entryBuilder.toString()); } } return externalList; }