List<VirtualFile> () { if (myFiles == null) { throw new IllegalStateException(); } List<VirtualFile> list = new ArrayList<>(); for (VirtualFile f : myFiles) { if (f != null && !myDirtyScopeInfo.getDirtyScope().contains(f)) { list.add(f); } } return list; }