void (@NotNull List<? extends PsiFile> files) { List<VirtualFile> list = new ArrayList<>(); for (PsiFile psiFile : files) { list.add(psiFile.getVirtualFile()); } if (!ReadonlyStatusHandler.getInstance(myProject).ensureFilesWritable(list).hasReadonlyFiles()) { if (!files.isEmpty()) { execute(() -> prepareFiles(files)); } } }