void (@NotNull PsiFile file, @NotNull Consumer<@NotNull PsiFile> handler) { if (file.isPhysical()) { throw new IllegalArgumentException(); } file.putUserData(NON_PHYSICAL_FILE_DELETE_HANDLER, handler); }