this.coloringAnimations.clear();
} else if ( higherNonFullPercentage >= HALF_ANIMATION_THRESHOLD && previousColor != bestAnimation.isColoring() ) {
@NotNull
@NonNls
final String suffixString;
final PERPENDICULAR_DIRECTION animationDirection = bestAnimation.getDirection();
Set<PERPENDICULAR_DIRECTION> directions = getAvailableDirections();
if ( bestAnimation.isColoring() ) {
suffixString = getHalfResourceNameByDirections( directions, animationDirection.getOpposite() );
} else {
Deque<PERPENDICULAR_DIRECTION> junctionDirections = new LinkedList<>( directions );
if ( junctionDirections.size() == 2 ) {
junctionDirections.remove( animationDirection.getOpposite() );
final PERPENDICULAR_DIRECTION other = junctionDirections.getFirst();
suffixString = getHalfResourceNameByDirections( directions, other );
} else {
suffixString = getHalfResourceNameByDirections( directions, animationDirection.getOpposite() );
}
}