FilePath (@NotNull Project project, @NotNull FilePath path) { if (project.isDefault()) return path; Change change = ChangeListManager.getInstance(project).getChange(path); if (change == null || change.getType() != Change.Type.MOVED || change.getBeforeRevision() == null) { return path; } return change.getBeforeRevision().getFile(); }