void () { myNext = null; while (myEnum.hasMoreElements()) { final Object o = myEnum.nextElement(); if (o instanceof FileTreeNode treeNode) { VirtualFilePointer filePointer = treeNode.getFilePointer(); FilePath filePath = getFilePath(filePointer); if (filePath == null) continue; myNext = filePath; myStatus = FileStatus.MODIFIED; final GroupTreeNode parent = findParentGroupTreeNode(treeNode.getParent()); if (parent != null) { final String id = parent.getFileGroupId(); if (FileGroup.CREATED_ID.equals(id)) { myStatus = FileStatus.ADDED; } else if (FileGroup.REMOVED_FROM_REPOSITORY_ID.equals(id)) { myStatus = FileStatus.DELETED; } } break; } } }