[JBIDE-17879] removed dupl code to check project changes, added tests