FileStatus (@NotNull String status) { if (status.startsWith("new")) { //NON-NLS return FileStatus.ADDED; } else if (status.startsWith("deleted")) return FileStatus.DELETED; //NON-NLS return FileStatus.MODIFIED; }