void (@NotNull Project project, Change @NotNull [] changes) { for (Change change : changes) { ContentRevision revision = change.getAfterRevision(); if (revision == null || revision.getFile().isDirectory()) continue; VirtualFile vFile = ContentRevisionVirtualFile.create(revision); Navigatable navigatable = new OpenFileDescriptor(project, vFile); navigatable.navigate(true); } }