boolean (@NotNull VcsCommitMetadata details) { if ((details instanceof VcsFullCommitDetails)) { for (Change change : ((VcsFullCommitDetails)details).getChanges()) { ContentRevision before = change.getBeforeRevision(); if (before != null && matches(before.getFile().getPath())) { return true; } ContentRevision after = change.getAfterRevision(); if (after != null && matches(after.getFile().getPath())) { return true; } } } return false; }