List<VirtualFile> (@NotNull List<VirtualFile> list, @NotNull SdkModificator modificator) { myFilteredOut.clear(); List<VirtualFile> result = filterOutStubs(list, myFilteredOut); myFoundFiles.clear(); myFoundFiles.addAll(list); myUserAddedToRemove.clear(); if (modificator.getSdkAdditionalData() instanceof PythonSdkAdditionalData data) { setAdded(data.getAddedPathFiles()); setExcluded(data.getExcludedPathFiles()); result.addAll(myExcluded); result.addAll(myAdded); } else if (modificator.getSdkAdditionalData() == null) { myAdded.clear(); myExcluded.clear(); } return result; }