boolean (String path) { synchronized (myStateLock) { if (myIgnoredFilesPatternsCache == null) { myIgnoredFilesPatternsCache = Pattern.compile(Strings.translateMasks(myIgnoredFilesPatterns)); } return myIgnoredFilesPatternsCache.matcher(path).matches(); } }