Improve containsFile algorithm

+ Improve containsFile algorithm
- Remove containsJava since containsFile is already check for Java files