public boolean isExcludedOrUnderExcludedDirectory(@NotNull VirtualFile file) {
    ModifiableRootModel model = getModel();
    if (model == null) {
      throw new AssertionError(getClass() + ".getModel() returned null unexpectedly");
    }
    Project project = model.getProject();
    ContentEntry contentEntry = getContentEntry();
    if (contentEntry == null) {
      return false;
    }
    return isExcludedOrUnderExcludedDirectory(project, contentEntry, file);
  }
public boolean isExcludedOrUnderExcludedDirectory(@NotNull VirtualFile file)