boolean (@NotNull WorkspaceEntity entity) { Class<? extends @NotNull WorkspaceEntity> entityClass = entity.getClass(); return ContainerUtil.exists(customEntitiesToRescan, aClass -> aClass.isAssignableFrom(entityClass)); }